Pages

Men

rh

7/06/2012

How to set the instancing mode in WCF service?

In WCF, instancing mode is set at service level. For ex.

//Setting PerSession instance mode
[ServiceBehavior(InstanceContextMode = InstanceContextMode.PerSession)]
class MyService : IMyService
{
//Implementation goes there
}

No comments :

Post a Comment