C# Класс Opc.Ua.ServiceMessageContextMessageInspector

Ensures the operation context is set up correctly.
Наследование: IClientMessageInspector, IEndpointBehavior
Показать файл Открыть проект

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

Метод Описание
AddBindingParameters ( ServiceEndpoint endpoint, System.ServiceModel.Channels.BindingParameterCollection bindingParameters ) : void

Implement to pass data at runtime to bindings to support custom behavior.

AfterReceiveReply ( Message &reply, object correlationState ) : void

Enables inspection or modification of a message after a reply message is received but prior to passing it back to the client application.

ApplyClientBehavior ( ServiceEndpoint endpoint, ClientRuntime clientRuntime ) : void

Implements a modification or extension of the client across an endpoint.

ApplyDispatchBehavior ( ServiceEndpoint endpoint, EndpointDispatcher endpointDispatcher ) : void

Implements a modification or extension of the service across an endpoint.

BeforeSendRequest ( Message &request, IClientChannel channel ) : object

Enables inspection or modification of a message before a request message is sent to a service.

ServiceMessageContextMessageInspector ( System.ServiceModel.Channels.Binding binding ) : System

Initializes the object with the binding to use.

ServiceMessageContextMessageInspector ( ServiceMessageContext messageContext ) : System

Initializes the object with the message context to use.

Validate ( ServiceEndpoint endpoint ) : void

Implement to confirm that the endpoint meets some intended criteria.

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

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

Implement to pass data at runtime to bindings to support custom behavior.
public AddBindingParameters ( ServiceEndpoint endpoint, System.ServiceModel.Channels.BindingParameterCollection bindingParameters ) : void
endpoint System.ServiceModel.Description.ServiceEndpoint The endpoint to modify.
bindingParameters System.ServiceModel.Channels.BindingParameterCollection The objects that binding elements require to support the behavior.
Результат void

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

Enables inspection or modification of a message after a reply message is received but prior to passing it back to the client application.
public AfterReceiveReply ( Message &reply, object correlationState ) : void
reply Message The message to be transformed into types and handed back to the client application.
correlationState object Correlation state data.
Результат void

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

Implements a modification or extension of the client across an endpoint.
public ApplyClientBehavior ( ServiceEndpoint endpoint, ClientRuntime clientRuntime ) : void
endpoint System.ServiceModel.Description.ServiceEndpoint The endpoint that is to be customized.
clientRuntime System.ServiceModel.Dispatcher.ClientRuntime The client runtime to be customized.
Результат void

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

Implements a modification or extension of the service across an endpoint.
public ApplyDispatchBehavior ( ServiceEndpoint endpoint, EndpointDispatcher endpointDispatcher ) : void
endpoint System.ServiceModel.Description.ServiceEndpoint The endpoint that exposes the contract.
endpointDispatcher System.ServiceModel.Dispatcher.EndpointDispatcher The endpoint dispatcher to be modified or extended.
Результат void

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

Enables inspection or modification of a message before a request message is sent to a service.
public BeforeSendRequest ( Message &request, IClientChannel channel ) : object
request Message The message to be sent to the service.
channel IClientChannel The WCF client object channel.
Результат object

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

Initializes the object with the binding to use.
public ServiceMessageContextMessageInspector ( System.ServiceModel.Channels.Binding binding ) : System
binding System.ServiceModel.Channels.Binding The binding.
Результат System

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

Initializes the object with the message context to use.
public ServiceMessageContextMessageInspector ( ServiceMessageContext messageContext ) : System
messageContext ServiceMessageContext The message context.
Результат System

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

Implement to confirm that the endpoint meets some intended criteria.
public Validate ( ServiceEndpoint endpoint ) : void
endpoint System.ServiceModel.Description.ServiceEndpoint The endpoint to validate.
Результат void