Microsoft
70-513 · Question #276
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 B. Dim 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
- ADim handler = New CallbackHandler()
- BDim handler = New CallbackHandler()
- CDim handler - New CallbackHandler()
- DDim handler = New CallbackHandler()
How the community answered
(48 responses)- A4% (2)
- B83% (40)
- C10% (5)
- D2% (1)
Community Discussion
No community discussion yet for this question.