IParameterInspector.AfterCall Method (String, Object[], Object, Object)

 

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

Namespace:   System.ServiceModel.Dispatcher
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

abstract AfterCall : 
        operationName:string *
        outputs:Object[] *
        returnValue:Object *
        correlationState:Object -> unit

Parameters

operationName
Type: System.String

The name of the invoked operation.

outputs
Type: System.Object[]

Any output objects.

returnValue
Type: System.Object

The return value of the operation.

correlationState
Type: System.Object

Any correlation state returned from the BeforeCall method, or null.

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.

The following code example shows an IParameterInspector implementation that:

  • Writes the operation name and return value to the console after a response has been deserialized by the service or a request has been serialized by a client.

  • Writes the operation name to the console after deserializing a response on the client or after a response has been serialized on the service.

No code example is currently available or this language may not be supported.

The following code example shows how to use either System.ServiceModel.Description.IOperationBehavior, System.ServiceModel.Description.IEndpointBehavior, or System.ServiceModel.Description.IServiceBehavior to insert IParameterInspector objects.

No code example is currently available or this language may not be supported.

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 4.0
Return to top
Show: