Instancing modes in WCF

There are 3 instancing modes 




1. PerCall - A new instance of service object is created for every request, irrespective of whether the request comes from the same client or a different client.

2. PerSession - A new instance of the service object is created for each new client session and maintained for the duration of that session.

3. Single - A single instance of the service object is created and handles all requests for the lifetime of the application, irrespective of whether the request comes from the same client or a different client.

No comments:

Post a Comment