I have ConcurrencyMode.Multiple ans InstanceContextmode.PerSession, but I do not understand the latter.
In my application I do like this:
ServiceHost host = new ServiceHost(typeof(MyService), baseAddress);
But http://msdn.microsoft.com/en-us/library/system.servicemodel.instancecontextmode(v=vs.110).aspx
tells that "For singleton lifetime behavior (for example, if the host application calls the ServiceHost constructor and passes an object to use as the service), the service class must set InstanceContextMode to InstanceContextMode.Single, or an exception is thrown when the service host is opened."
Isn't that what I'm doing? It works fine and it's multithreaded. I would really appreciate if someone could explain me PerSession and PerCall values. Isn't a session also a call?