C# Class Microsoft.Protocols.TestSuites.Common.ResponseSchemaValidationInspector

A class that is used to inject into the WCF response handle process to do schema validation.
Inheritance: IEndpointBehavior, IClientMessageInspector
Show file Open project: OfficeDev/Interop-TestSuites Class Usage Examples

Public Methods

Method Description
AddBindingParameters ( ServiceEndpoint endpoint, System bindingParameters ) : void

Pass the data at runtime to bindings to support custom behavior. The current implementation does nothing.

AfterReceiveReply ( System &reply, object correlationState ) : void

Inspect the response message and do the schema validation.

ApplyClientBehavior ( ServiceEndpoint endpoint, System clientRuntime ) : void

Add a message inspector in the specified ClientRuntime to give the ability of inspecting the request and response message.

ApplyDispatchBehavior ( ServiceEndpoint endpoint, System endpointDispatcher ) : void

Implements a modification or extension of the service across an endpoint. The current implementation does nothing.

BeforeSendRequest ( System &request, IClientChannel channel ) : object

Inspect the request message and restore this message.

Validate ( ServiceEndpoint endpoint ) : void

Implement to confirm that the endpoint meets some intended criteria. The current implementation does nothing.

Method Details

AddBindingParameters() public method

Pass the data at runtime to bindings to support custom behavior. The current implementation does nothing.
public AddBindingParameters ( ServiceEndpoint endpoint, System bindingParameters ) : void
endpoint System.ServiceModel.Description.ServiceEndpoint The endpoint to modify.
bindingParameters System The objects that binding elements require to support the behavior.
return void

AfterReceiveReply() public method

Inspect the response message and do the schema validation.
public AfterReceiveReply ( System &reply, object correlationState ) : void
reply System The message to be transformed into types and handed back to the client application.
correlationState object Correlation state data
return void

ApplyClientBehavior() public method

Add a message inspector in the specified ClientRuntime to give the ability of inspecting the request and response message.
public ApplyClientBehavior ( ServiceEndpoint endpoint, System clientRuntime ) : void
endpoint System.ServiceModel.Description.ServiceEndpoint The endpoint that is to be customized.
clientRuntime System The client runtime to be added message inspector.
return void

ApplyDispatchBehavior() public method

Implements a modification or extension of the service across an endpoint. The current implementation does nothing.
public ApplyDispatchBehavior ( ServiceEndpoint endpoint, System endpointDispatcher ) : void
endpoint System.ServiceModel.Description.ServiceEndpoint The endpoint that is to be customized.
endpointDispatcher System The endpoint dispatcher to be modified or extended.
return void

BeforeSendRequest() public method

Inspect the request message and restore this message.
public BeforeSendRequest ( System &request, IClientChannel channel ) : object
request System The message to be sent to the service.
channel IClientChannel The client object channel.
return object

Validate() public method

Implement to confirm that the endpoint meets some intended criteria. The current implementation does nothing.
public Validate ( ServiceEndpoint endpoint ) : void
endpoint System.ServiceModel.Description.ServiceEndpoint The endpoint to validate.
return void