System.ServiceModel 4.0.0.0

Implement the interface to create a custom parameter inspector that can view and modify the contents of a call both before the call and after the call in either client or service applications.

On outbound calls from a client, the inspector is invoked before the request contents are serialized and sent to the service. The inspector is also called after the response has been deserialized but before the return values have been dispatched to the proxy method.

On inbound calls to a service, the inspector is invoked after parameters are deserialized but before they are dispatched to the service operation.

Use the or the properties to add an implementation to the inspectors collection for a particular operation.

Note Developers and administrators must ensure that the interaction with other implementations is understood.

Defines the contract implemented by custom parameter inspectors that enables inspection or modification of information prior to and subsequent to calls on either the client or the service.

- Method
  4.0.0.0
  System.Void `` `` `` ``

  On outbound calls from a client, the inspector is invoked before the request contents are serialized and sent to the service. The inspector is also called after the response has been deserialized but before the return values have been dispatched to the proxy method.

  On inbound calls to a service, the inspector is invoked after parameters are deserialized but before they are dispatched to the service operation.

  Called after client calls are returned and before service responses are sent.

  The name of the invoked operation. Any output objects. The return value of the operation. Any correlation state returned from the method, or null.
- Method
  4.0.0.0
  System.Object `` ``

  On outbound calls from a client, the inspector is invoked before the request contents are serialized and sent to the service. The inspector is also called after the response has been deserialized but before the return values have been dispatched to the proxy method.

  On inbound calls to a service, the inspector is invoked after the request contents are deserialized and dispatched to the service operation and before the response contents are serialized and sent to the client.

  Called before client calls are sent and after service responses are returned.

  The correlation state that is returned as the parameter in . Return null if you do not intend to use correlation state.

  The name of the operation. The objects passed to the method by the client.