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
Post a Comment