In the default scenario, the WCF service host (the subject that hosts your service class) will create a new instance of your service class for each incoming request and allow you to process the request (activation "per call").
, serviceThrottling .
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="ThrottledServiceBehavior">
<serviceThrottling
maxConcurrentCalls="25"
maxConcurrentSessions="25"
maxConcurrentInstances="25"/>
</behavior>
</serviceBehaviors>
</behaviors>
Kenny Wolf .
, InstanceContextMode ConcurrencyMode ( ) , concurrency .
[ServiceBehavior(InstanceContextMode=InstanceContextMode.PerCall,
ConcurrencyMode=ConcurrencyMode.Single)]
class YourServiceClass : IYourService
{
.....
}
InstanceContextMode PerCall ( ), ConcurrencyMode Single ( ).
InstanceContextMode PerSession, , ( ), Single ( - , , , !).
ConcurrencyMode Reentrant ( ) Multiple ( - !).