Microsoft
70-513 · Question #104
You are creating an application that consumes a Windows Communication Foundation (WCF) service. The service implements the IService contract. The client application contains the CallbackHandler…
The correct answer is D. var handler = new CallbackHandler(). See the full explanation below for the reasoning.
Question
You are creating an application that consumes a Windows Communication Foundation (WCF) service. The service implements the IService contract. The client application contains the CallbackHandler class, which implements IServiceCallback. You need to ensure that a client proxy is created that can communicate with the service over a duplex channel. Which code segment should you use?
Options
- Avar handler = new CallbackHandler();
- Bvar handler = new CallbackHandler();
- Cvar handler = new CallbackHandler();
- Dvar handler = new CallbackHandler();
How the community answered
(26 responses)- A4% (1)
- B4% (1)
- C8% (2)
- D85% (22)
Community Discussion
No community discussion yet for this question.