C# Класс Microsoft.Protocols.TestSuites.Common.ResponseSchemaValidationInspector

A class that is used to inject into the WCF response handle process to do schema validation.
Наследование: IEndpointBehavior, IClientMessageInspector
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

AddBindingParameters() публичный Метод

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.
Результат void

AfterReceiveReply() публичный Метод

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
Результат void

ApplyClientBehavior() публичный Метод

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.
Результат void

ApplyDispatchBehavior() публичный Метод

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.
Результат void

BeforeSendRequest() публичный Метод

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.
Результат object

Validate() публичный Метод

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.
Результат void