A Windows Communication Foundation (WCF) solution exposes the following service over
a TCP binding. (Line numbers are included for reference only.) MessageDatabase supports
a limited number of concurrent executions of its methods. You need to change the service
to allow up to the maximum number of executions of the methods of MessageDatabase.
This should be implemented without preventing customers from connecting to the service.
What should you do?
A.
Add a throttling behavior to the service, and configure the maxConcurrentSessions.
B.
Add a throttling behavior to the service, and configure the maxConcurrentCalls.
C.
Change the service behavior as follows.
<ServiceBehavior(ConcurrencyMode:=ConcurrencyMode.Single,
InstanceContextMode:=InstanceContextMode.PerSession)>
D.
Change the service behavior as follows.
<ServiceBehavior(ConcurrencyMode:=ConcurrencyMode.Multiple,
InstanceContextMode:=InstanceContextMode.Single)>