How can we limit the number of concurrent calls in wcf?
+2
A:
Have a look here for an example. You have the ability to specify limits using properties on the ServiceThrottlingBehavior
class:
MaxConcurrentCalls: Maximum number of messages actively processing across a ServiceHost object. Each channel can have one pending message that does not count against the value of MaxConcurrentCalls until Windows Communication Foundation (WCF) begins to process it.
MaxConcurrentInstances: Maximum number of InstanceContext objects in the service that can execute at one time
- MaxConcurrentSessions: Maximum number of sessions a ServiceHost object can accept at one time
(These descriptions are taken from MSDN)
Nader Shirazie
2009-09-08 05:10:59
yes..this is usefull
Jaswant Agarwal
2009-09-08 05:22:45
+3
A:
When it comes to these kinds of questions I use this blog post as reference. Quick and concise.
Ezombort
2009-09-08 05:16:42