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
Afficher le fichier Open project: OfficeDev/Interop-TestSuites Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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.
Résultat void

AfterReceiveReply() public méthode

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
Résultat void

ApplyClientBehavior() public méthode

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.
Résultat void

ApplyDispatchBehavior() public méthode

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.
Résultat void

BeforeSendRequest() public méthode

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.
Résultat object

Validate() public méthode

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.
Résultat void