How To Setup Concurrency Mode In WCF Service? | WCF Interview Question

, ,
The concurrency mode is specified using the ServiceBehavior attribute on the class that implements the service.

Ex.

[ServiceBehavior(ConcurrencyMode=ConcurrencyMode.Single)]

Public class ServiceClass : IServiceInterface{

//Implementation Code

}

There are 3 possible values of ConcurrencyMode enumeration

  • Single
  • Reentrant
  • Multiple