WCF Service – Instance Deactivation

By | April 21, 2013
What is Instance Deactivation in Windows Communication Foundation? How explicitly we can deactivate an instance?

Instance Deactivation: When a service method being called from client, its forwarded to a service instance. So, Instance deactivation means that the moment this service instance is disposed off by WCF.

In order to explicitly deactivate a service instance, we will do the following.
OperationContext.Current.InstanceContext.ReleaseServiceInstance();

Category: Uncategorized Tags:

About IMRAN ABDUL GHANI

Imran Abdul Ghani is working as Software Developer(Senior) with extensive knowledge in Web development technologies especially C#, ASP.NET, MVC, WCF, Web API, ADO.NET Entity Framework, jQuery etc. He has several years of experience in designing/developing enterprise level applications. He is Microsoft Certified Solution Developer for .NET (MCSD.NET) since 2005. You can reach his blogging at www.webdevelopmenthelp.net, www.topwcftutorials.net, and www.sharepointfordummies.net.