70-513 · Question #57
You are developing a Windows Communication Foundation (WCF) service that does not operate on a duplex channel. You find that operations do not start until all previous operations have finished. The…
The correct answer is A. [ServiceBehavior(InstanceContextMode=InstanceContextMode.Single. Only Concurrency Mode. Multiple gives as singleton service with support of multiple requests
Question
You are developing a Windows Communication Foundation (WCF) service that does not operate on a duplex channel. You find that operations do not start until all previous operations have finished. The service hosting code contains the following lines. var service = new WarehouseService(); var host = new ServiceHost(service); You need to ensure that new operations do not wait for previous operations to finish. Which attribute should you use to decorate the service?
Options
- A[ServiceBehavior(InstanceContextMode=InstanceContextMode.Single,
- B[CallbackBehavior(ConcurrencyMode=ConcurrencyMode.Multiple)]
- C[ServiceBehavior(InstanceContextMode=InstanceContextMode.Single,
- D[ServiceBehavior(InstanceContextMode=InstanceContextMode.Single,
How the community answered
(32 responses)- A81% (26)
- B3% (1)
- C9% (3)
- D6% (2)
Explanation
Only Concurrency Mode. Multiple gives as singleton service with support of multiple requests
Topics
Community Discussion
No community discussion yet for this question.