Session Management or Instance management in WCF.


WCF manage session by creating the instance of the service class. These created instances handle the incoming service request. In WCF, session is the way of managing the services instances

1. Per Call :-
          In this way, each request is served by a new service instance. It means a new service instance is created for each request and destroyed after the request is served.



2. Per Session :-
         In this way, each and every client requests are served by a new single service instance. It means a new service instance is created for a client all requests and destroyed after the client finished its activity.


3. Single :-
         In this way, all clients’ requests are served by a single service instance. It means a single service instance is created to handle all the clients’ requests and never destroyed after serving the request.

Share

& Comment

0 comments:

Post a Comment

 

Copyright © 2019 HART™ is a registered trademark.