Does anyone know how IIS/.NET web services handle call-concurrency?
I can think of two tactics:
- Create an instance. Let all clients call the WebMethod:s from their own calling-thread. Instance-object needs to be thread-safe.
- Create an instance per calling client.
(Does having Sessions enabled change the behaviour?)
(Note. Not using WCF.)
An instance of your
[WebService]class is created for each request. Only the one request will ever access that instance.