MessageInspector BeforeSendRequest Method CelloSaaS API Documentation
Enables inspection or modification of a message before a request message is sent to a service.

Namespace: CelloSaaS.BusinessEdition
Assembly: CelloSaaS.BusinessEdition (in CelloSaaS.BusinessEdition.dll) Version: 4.3.1.0 (4.3.1.0)
Syntax

public Object BeforeSendRequest(
	ref Message request,
	IClientChannel channel
)

Parameters

request
Type: System.ServiceModel.Channels Message 
The message to be sent to the service.
channel
Type: System.ServiceModel IClientChannel
The Silverlight 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

IClientMessageInspector BeforeSendRequest(Message , IClientChannel)
See Also