MessageReceiver.OnBeginTryReceiveEventData(TrackingContext, Int32, TimeSpan, AsyncCallback, Object) MessageReceiver.OnBeginTryReceiveEventData(TrackingContext, Int32, TimeSpan, AsyncCallback, Object) Method

Definition

Executes upon calling the OnTryReceive or BeginTryReceive operation for the event data.

protected virtual IAsyncResult OnBeginTryReceiveEventData (Microsoft.ServiceBus.Tracing.TrackingContext trackingContext, int messageCount, TimeSpan serverWaitTime, AsyncCallback callback, object state);
abstract member OnBeginTryReceiveEventData : Microsoft.ServiceBus.Tracing.TrackingContext * int * TimeSpan * AsyncCallback * obj -> IAsyncResult
override this.OnBeginTryReceiveEventData : Microsoft.ServiceBus.Tracing.TrackingContext * int * TimeSpan * AsyncCallback * obj -> IAsyncResult

Parameters

trackingContext
TrackingContext TrackingContext

The context information associated by a transaction tracking this operation.

messageCount
Int32 Int32

The number of messages to try receiving.

serverWaitTime
TimeSpan TimeSpan

The time span the operation waits before it times out.

callback
AsyncCallback AsyncCallback

An AsyncCallback delegate that references the method to invoke when the operation is complete.

state
Object Object

A user-defined object that contains state information about the asynchronous operation.

Returns

An IAsyncResult that references the asynchronous operation to try to receive event data.

Applies to