You are designing a Windows application by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010. The business logic layer of the application is implemented by using Windows Communication Foundation (WCF).
You create a duplex bidirectional WCF service that contains a single operation. The service operation sends the result back to the client application by using a two-way callback operation.
You plan to design a service interaction strategy.
You need to ensure that deadlocks are prevented.
What should you do?
A.
Configure the CallbackBehaviorAttribute attribute to use the Reentrant or Multiple concurrency mode in the callback class.
B.
Configure the ServiceBehaviorAttribute attribute to use the Reentrant or Multiple concurrency mode in the service class.
C.
Configure the ServiceBehaviorAttribute attribute to use the Synchronization context in the service class.
D.
Configure the CallbackBehaviorAttribute attribute to use the Synchronization context in the callback class.