nerdexam
Microsoft

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

Manage application lifecycle

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)
  • A
    81% (26)
  • B
    3% (1)
  • C
    9% (3)
  • D
    6% (2)

Explanation

Only Concurrency Mode. Multiple gives as singleton service with support of multiple requests

Topics

#WCF#concurrency#ServiceBehavior#ConcurrencyMode

Community Discussion

No community discussion yet for this question.

Full 70-513 Practice