70-513 · Question #60
A Windows Communication Foundation (WCF) solution uses the following contract to share a message across its clients. (Line numbers are included for reference only.) The code for the service class is…
Sign in or unlock 70-513 to reveal the answer and full explanation for question #60. The question stem and answer options stay visible for context.
Question
A Windows Communication Foundation (WCF) solution uses the following contract to share a message across its clients. (Line numbers are included for reference only.) The code for the service class is as follows. The service is self-hosted. The hosting code is as follows. You need to ensure that all clients calling GetMessage will retrieve the updated string if the message is updated by any client calling PutMessage. What should you do?
Exhibits
Options
- AAdd the following attribute to the TeamMessageService class, before line 10.
- BAdd the following attribute to the TeamMessageService class, before line 10.
- CPass a service instance to the instancing code in line 24, as follows.
- DRedefine the message string in line 13, as follows
Unlock 70-513 to see the answer
You've previewed enough free 70-513 questions. Unlock 70-513 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.


