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

java - Solr query version issue: Invalid version or the data in not in 'javabin' format -

Hard vs. Soft Water: What's The Difference?

The Ten Most Livable Cities In The World