Ensures the operation context is set up correctly.
More...
Inherits IDispatchMessageInspector, IClientMessageInspector, and IEndpointBehavior.
|
| 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...
|
|
Ensures the operation context is set up correctly.
UnifiedAutomation.UaBase.MessageContextMessageInspector.MessageContextMessageInspector |
( |
MessageContext |
messageContext | ) |
|
|
inline |
Initializes the object with the message context to use.
- Parameters
-
messageContext | The message context. |
void UnifiedAutomation.UaBase.MessageContextMessageInspector.AddBindingParameters |
( |
ServiceEndpoint |
endpoint, |
|
|
BindingParameterCollection |
bindingParameters |
|
) |
| |
|
inline |
Implement to pass data at runtime to bindings to support custom behavior.
- Parameters
-
endpoint | The endpoint to modify. |
bindingParameters | The 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
-
reply | The message to be transformed into types and handed back to the client application. |
correlationState | Correlation 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
-
request | The request message. |
channel | The incoming channel. |
instanceContext | The 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
-
endpoint | The endpoint that is to be customized. |
clientRuntime | The 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
-
endpoint | The endpoint that exposes the contract. |
endpointDispatcher | The 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
-
reply | The reply message. This value is null if the operation is one way. |
correlationState | The 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
-
request | The message to be sent to the service. |
channel | The WCF client object channel. |
void UnifiedAutomation.UaBase.MessageContextMessageInspector.Validate |
( |
ServiceEndpoint |
endpoint | ) |
|
|
inline |
Implement to confirm that the endpoint meets some intended criteria.
- Parameters
-
endpoint | The endpoint to validate. |
The documentation for this class was generated from the following file:
- C:/work/uasdknet/src/UaBase/Wcf/MessageContextBehaviorAttribute.cs