Microsoft
70-513 · Question #60
70-513 Question #60: Real Exam Question with Answer & Explanation
The correct answer is A. Add the following attribute to the TeamMessageService class, before line 10.. See the full explanation below for the reasoning.
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
Community Discussion
No community discussion yet for this question.


