Defines a message inspector object that can be added to the MessageInspectors collection to view or modify messages.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Enables inspection or modification of a message after a reply message is received but prior to passing it back to the client application.
Enables inspection or modification of a message before a request message is sent to a service.
The following code example shows an implementation that writes strings to the console when the implementation is called.
The following code example shows how to use an System.ServiceModel.Description.IEndpointBehavior to insert the client message inspector in the client endpoint.
Finally, the following code example shows how to modify the client configuration file to use the endpoint behavior with a particular endpoint.
Available since 8
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Available since 4.0