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
Protected Overridable Function OnBeginTryReceiveEventData (trackingContext As TrackingContext, messageCount As Integer, serverWaitTime As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters

trackingContext
TrackingContext

The context information associated by a transaction tracking this operation.

messageCount
Int32

The number of messages to try receiving.

serverWaitTime
TimeSpan

The time span the operation waits before it times out.

callback
AsyncCallback

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

state
Object

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

Returns

IAsyncResult

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

Applies to