UA Bundle SDK .NET  2.2.3.276
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Groups Pages
UnifiedAutomation.UaBase.MessageContextMessageInspector Class Reference

Ensures the operation context is set up correctly. More...

Inherits IDispatchMessageInspector, IClientMessageInspector, and IEndpointBehavior.

Public Member Functions

 MessageContextMessageInspector (MessageContext messageContext)
 Initializes the object with the message context to use. More...
 
void AfterReceiveReply (ref Message reply, object correlationState)
 Enables inspection or modification of a message after a reply message is received but prior to passing it back to the client application. More...
 
object BeforeSendRequest (ref Message request, IClientChannel channel)
 Enables inspection or modification of a message before a request message is sent to a service. More...
 
object AfterReceiveRequest (ref Message request, IClientChannel channel, InstanceContext instanceContext)
 Called after an inbound message has been received but before the message is dispatched to the intended operation. More...
 
void BeforeSendReply (ref System.ServiceModel.Channels.Message reply, object correlationState)
 Called after the operation has returned but before the reply message is sent. More...
 
void AddBindingParameters (ServiceEndpoint endpoint, BindingParameterCollection bindingParameters)
 Implement to pass data at runtime to bindings to support custom behavior. More...
 
void ApplyClientBehavior (ServiceEndpoint endpoint, ClientRuntime clientRuntime)
 Implements a modification or extension of the client across an endpoint. More...
 
void ApplyDispatchBehavior (ServiceEndpoint endpoint, EndpointDispatcher endpointDispatcher)
 Implements a modification or extension of the service across an endpoint. More...
 
void Validate (ServiceEndpoint endpoint)
 Implement to confirm that the endpoint meets some intended criteria. More...
 

Detailed Description

Ensures the operation context is set up correctly.

Constructor & Destructor Documentation

UnifiedAutomation.UaBase.MessageContextMessageInspector.MessageContextMessageInspector ( MessageContext  messageContext)
inline

Initializes the object with the message context to use.

Parameters
messageContextThe message context.

Member Function Documentation

void UnifiedAutomation.UaBase.MessageContextMessageInspector.AddBindingParameters ( ServiceEndpoint  endpoint,
BindingParameterCollection  bindingParameters 
)
inline

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

Parameters
endpointThe endpoint to modify.
bindingParametersThe objects that binding elements require to support the behavior.
void UnifiedAutomation.UaBase.MessageContextMessageInspector.AfterReceiveReply ( ref Message  reply,
object  correlationState 
)
inline

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

Parameters
replyThe message to be transformed into types and handed back to the client application.
correlationStateCorrelation state data.
object UnifiedAutomation.UaBase.MessageContextMessageInspector.AfterReceiveRequest ( ref Message  request,
IClientChannel  channel,
InstanceContext  instanceContext 
)
inline

Called after an inbound message has been received but before the message is dispatched to the intended operation.

Parameters
requestThe request message.
channelThe incoming channel.
instanceContextThe current service instance.
Returns
The object used to correlate state. This object is passed back in the M:System.ServiceModel.Dispatcher.IDispatchMessageInspector.BeforeSendReply(System.ServiceModel.Channels.Message@,System.Object) method.
void UnifiedAutomation.UaBase.MessageContextMessageInspector.ApplyClientBehavior ( ServiceEndpoint  endpoint,
ClientRuntime  clientRuntime 
)
inline

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

Parameters
endpointThe endpoint that is to be customized.
clientRuntimeThe client runtime to be customized.
void UnifiedAutomation.UaBase.MessageContextMessageInspector.ApplyDispatchBehavior ( ServiceEndpoint  endpoint,
EndpointDispatcher  endpointDispatcher 
)
inline

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

Parameters
endpointThe endpoint that exposes the contract.
endpointDispatcherThe endpoint dispatcher to be modified or extended.
void UnifiedAutomation.UaBase.MessageContextMessageInspector.BeforeSendReply ( ref System.ServiceModel.Channels.Message  reply,
object  correlationState 
)
inline

Called after the operation has returned but before the reply message is sent.

Parameters
replyThe reply message. This value is null if the operation is one way.
correlationStateThe correlation object returned from the M:System.ServiceModel.Dispatcher.IDispatchMessageInspector.AfterReceiveRequest(System.ServiceModel.Channels.Message@,System.ServiceModel.IClientChannel,System.ServiceModel.InstanceContext) method.
object UnifiedAutomation.UaBase.MessageContextMessageInspector.BeforeSendRequest ( ref Message  request,
IClientChannel  channel 
)
inline

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

Parameters
requestThe message to be sent to the service.
channelThe WCF client object channel.
void UnifiedAutomation.UaBase.MessageContextMessageInspector.Validate ( ServiceEndpoint  endpoint)
inline

Implement to confirm that the endpoint meets some intended criteria.

Parameters
endpointThe endpoint to validate.

The documentation for this class was generated from the following file: