Microsoft
70-513 · Question #328
A Windows Communication Foundation (WCF) solution exposes the following contract over an HTTP connection. [ServiceContract] public interface IDataService { [OperationContract] string GetData(); }…
The correct answer is C. Generate a proxy class with asynchronous methods and use it for the new clients. See the full explanation below for the reasoning.
Question
A Windows Communication Foundation (WCF) solution exposes the following contract over an HTTP connection. [ServiceContract] public interface IDataService { [OperationContract] string GetData(); } Existing clients are making blocking calls to GetData. Calls to GetData take five seconds to complete. You need to allow new clients to issue non-blocking calls to get the data, without breaking any existing clients. What should you do?
Options
- AReplace the service interface with the following interface and implement the new methods.
- BReplace the service interface with the following interface and implement the new methods.
- CGenerate a proxy class with asynchronous methods and use it for the new clients.
- DAdd a new endpoint to the service that uses a full-duplex binding and use it for the new
How the community answered
(39 responses)- A8% (3)
- B13% (5)
- C77% (30)
- D3% (1)
Community Discussion
No community discussion yet for this question.