Click or drag to resize

WcfMessageInspectorBeforeSendRequest Method

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

Namespace:  Hummingbird.TestFramework.Services
Assembly:  Hummingbird.TestFramework (in Hummingbird.TestFramework.dll) Version: 1.2.0.0
Syntax
public Object BeforeSendRequest(
	ref Message request,
	IClientChannel channel
)

Parameters

request
Type: System.ServiceModel.ChannelsMessage
The message to be sent to the service.
channel
Type: System.ServiceModelIClientChannel
The WCF client object channel.

Return Value

Type: Object
The object that is returned as the CorrelationState argument of the AfterReceiveReply(Message, Object) method. This is null if no correlation state is used.The best practice is to make this a Guid to ensure that no two CorrelationState objects are the same.

Implements

IClientMessageInspectorBeforeSendRequest(Message, IClientChannel)
See Also