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.

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).



Leave a Reply 3

Your email address will not be published. Required fields are marked *


bt

bt

is the question about client side or server side? i cant be sure. if client side that iclientmessageinspctor if server side that the answer is right

stenly

stenly

Agree.
Sounds to me like server side ‘received by and sent from the WCF service’. Answer is correct.