Microsoft Exam Questions

Which three actions should you perform?

You are developing multiple web applications that will retrieve information for a Windows Communication
Foundation (WCF) service
You need to intercept and inspect messages received by and sent from the WCF service.
Which three actions should you perform? Each correct answer presents part of the solution.

A.
Create a class that inherits from the IDispatchMessageInspector interface.

B.
Implement the BeforeSendReply method.

C.
Implement the BeforeSendRequest method.

D.
Create a class that inherits from the IClientMessageInspector interface.

E.
Implement the AfterReceiveReply method.

F.
Implement the AfterReceiveRequest method.

Explanation:
A: Service message inspectors implement the IDispatchMessageInspector interface.
BF: Any service (dispatcher) message inspector must implement the two IDispatchMessageInspector methods
AfterReceiveRequest and BeforeSendReply(Message, Object).