What does WCF with the return of the method IDispatchMessageInspector.AfterReceiveRequest
?
All I have encountered was return null;
examples.
It passes the value to the BeforeSendReply
method, and it can be used to correlate the two calls. You can find one example of a non-null value being returned in the example on the post at http://blogs.msdn.com/b/carlosfigueira/archive/2011/04/19/wcf-extensibility-message-inspectors.aspx.
WCF does nothing with the return value.
From IDispatchMessageInspector.AfterReceiveRequest Method:
The return value can be any object that you want to use for correlation purposes; it is returned to you as the correlationState parameter in the BeforeSendReply method.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With