Different ways to maintain WCF instance management
The WCF framework has provided three ways by which we can control WCF instance creation. Here will try to understand these ways of WCF service instance control and compare when to use them and under what situations. Normally WCF request and response consists of the following actions: 1. WCF client makes a request to a WCF service object. 2. WCF service object is instantiated. 3. WCF service instance serves the request and sends the response to the client. There are different ways to instantiate WCF service object. In a simple way, create a new WCF service instance whenever WCF client method calls. Only one WCF service instance should be created for each WCF client session. And third way is only one global WCF service instance should be created for all WCF clients. WCF provides the ways to handle the above three ways: ...