SALES: 1-800-867-1380

MessageSender.OnBeginSend Method

Allows concrete implementations to define what should be done when sending messages. This method cannot be implemented in a concrete class by the user.

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

protected abstract IAsyncResult OnBeginSend(
	TrackingContext trackingContext,
	IEnumerable<BrokeredMessage> messages,
	TimeSpan timeout,
	AsyncCallback callback,
	Object state


Type: Microsoft.ServiceBus.Tracing.TrackingContext
The context of the tracking.
Type: System.Collections.Generic.IEnumerable<BrokeredMessage>
A list of BrokeredMessage objects to be sent.
Type: System.TimeSpan
A client side timeout value for the operation. The operation should be aborted or cancelled if the duration exceeds this timeout.
Type: System.AsyncCallback
A user callback to be invoked when the operation completes.
Type: System.Object
The state to be passed to the callback when the operation completes.

Return Value

Type: System.IAsyncResult
A IAsyncResult for the operation.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft