70-513 · Question #192
A Windows Communication Foundation (WCF) solution uses the following contracts. (Line numbers are included for reference only.) When the client calls GetMessage on the service interface, the service…
The correct answer is A. Change line 25 to the following code segment. B. Change line 26 to the following code segment. See the full explanation below for the reasoning.
Question
A Windows Communication Foundation (WCF) solution uses the following contracts. (Line numbers are included for reference only.) When the client calls GetMessage on the service interface, the service calls GetName on the client callback. In the client, the class NameService implements the callback contract. The client channel is created as follows. You need to ensure that the service callback is processed by the instance of NameService. What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)
Exhibits
Options
- AChange line 25 to the following code segment.
- BChange line 26 to the following code segment.
- CAdd the following code segment after line 26.
- DAdd the following code segment after line 26.
How the community answered
(36 responses)- A81% (29)
- C14% (5)
- D6% (2)
Community Discussion
No community discussion yet for this question.

