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 twoway 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 ServiceBehaviorAttribute attribute to use the Synchronization context in the
service class.
B.
Configure the CallbackBehaviorAttribute attribute to use the Synchronization context in
the callback class.
C.
Configure the CallbackBehaviorAttribute attribute to use the Reentrant or Multiple
concurrency mode in the callback class.
D.
Configure the ServiceBehaviorAttribute attribute to use the Reentrant or Multiple
concurrency mode in the service class.
Explanation: