C# Class Opc.Ua.ServiceMessageContextMessageInspector

Ensures the operation context is set up correctly.
Inheritance: IClientMessageInspector, IEndpointBehavior
Afficher le fichier Open project: OPCFoundation/UA-.NETStandardLibrary

Méthodes publiques

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

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

AfterReceiveReply() public méthode

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

ApplyClientBehavior() public méthode

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

ApplyDispatchBehavior() public méthode

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

BeforeSendRequest() public méthode

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

ServiceMessageContextMessageInspector() public méthode

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

ServiceMessageContextMessageInspector() public méthode

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

Validate() public méthode

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