c# - How and where to implement the IDispatchMessageInspector -


based on question: how use idispatchmessageinspector in wcf service?

i still confused on implement methods execute code "do something" inspected message.

from reading idispatchmessageinspector appears need have class implements idispatchmessageinspector has these 2 methods afterreceiverequest , beforesendreply.

however, not understanding or how use methods.

for example if wanted modify element in inbound request message before dispatched operation.

is done in class create servicebehavior implements servicecontract interface?


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -