How the concurrency mode is specified in WCF service?

 Posted by Prasham on 10/19/2010 | Category: WCF Interview questions | Views: 6457 | Points: 40
Answer:

Hello,

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

Thanks
Prasham


| Alert Moderator 

Comments or Responses

Posted by: Chvrsri on: 12/10/2010 | Points: 10
What is the Difference between all these three Concurrency modes ?

Login to post response