Microsoft
70-513 · Question #70
You are developing a Windows Communication Foundation (WCF) service that is hosted by a Windows Forms application. The ServiceHost instance is created in the Form constructor. You need to ensure…
The correct answer is A. Decorate the service implementation class with the following line of code. See the full explanation below for the reasoning.
Question
You are developing a Windows Communication Foundation (WCF) service that is hosted by a Windows Forms application. The ServiceHost instance is created in the Form constructor. You need to ensure that the service is not blocked while the UI thread is busy. What should you do?
Options
- ADecorate the service implementation class with the following line of code
- BDecorate the service implementation class with the following line of code
- CCall the Invoke method of the form and supply a delegate.
- DCall the BeginInvoke method of the form and supply a delegate.
How the community answered
(42 responses)- A79% (33)
- B5% (2)
- C12% (5)
- D5% (2)
Community Discussion
No community discussion yet for this question.