SALES: 1-800-867-1380

MessageSender.OnSend Method

Allows concrete implementations to override (if needed) what should be done when sending messages in a synchronous manner.

Namespace:  Microsoft.ServiceBus.Messaging
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)

protected virtual void OnSend(
	TrackingContext trackingContext,
	IEnumerable<BrokeredMessage> messages,
	TimeSpan timeout
)

Parameters

trackingContext
Type: Microsoft.ServiceBus.Tracing.TrackingContext
The context of the tracking.
messages
Type: System.Collections.Generic.IEnumerable<BrokeredMessage>
A list of BrokeredMessage objects to be sent.
timeout
Type: System.TimeSpan
A client side timeout value for the operation. The operation should be aborted or cancelled if the duration exceeds this timeout.

Typically the timeout comes from OperationTimeout.

OnSend is equal to this.OnEndSend(this.OnBeginSend(messages, timeout, null, null));.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft