C# Class Opc.Ua.ServiceMessageContextMessageInspector

Ensures the operation context is set up correctly.
Inheritance: IClientMessageInspector, IEndpointBehavior
ファイルを表示 Open project: OPCFoundation/UA-.NETStandardLibrary

Public Methods

Method Description
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.

Method Details

AddBindingParameters() public method

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.
return void

AfterReceiveReply() public method

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.
return void

ApplyClientBehavior() public method

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.
return void

ApplyDispatchBehavior() public method

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.
return void

BeforeSendRequest() public method

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.
return object

ServiceMessageContextMessageInspector() public method

Initializes the object with the binding to use.
public ServiceMessageContextMessageInspector ( System.ServiceModel.Channels.Binding binding ) : System
binding System.ServiceModel.Channels.Binding The binding.
return System

ServiceMessageContextMessageInspector() public method

Initializes the object with the message context to use.
public ServiceMessageContextMessageInspector ( ServiceMessageContext messageContext ) : System
messageContext ServiceMessageContext The message context.
return System

Validate() public method

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