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
)
Public Function BeforeSendRequest (
ByRef request As Message,
channel As IClientChannel
) As Object
public:
virtual Object^ BeforeSendRequest(
Message^% request,
IClientChannel^ channel
) sealed
abstract BeforeSendRequest :
request : Message byref *
channel : IClientChannel -> Object
override BeforeSendRequest :
request : Message byref *
channel : IClientChannel -> Object
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