1.

How The Concurrency Mode Is Specified In Wcf Service?

Answer»

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

  1. Single
  2. Reentrant
  3. Multiple

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



Discussion

No Comment Found