Delen via


MessagingFactory.OnBeginAcceptSessionReceiver Method

Definition

Executes the begin accept session receiver action.

protected abstract IAsyncResult OnBeginAcceptSessionReceiver (string entityName, string sessionId, Microsoft.ServiceBus.Messaging.ReceiveMode receiveMode, TimeSpan timeout, AsyncCallback callback, object state);
abstract member OnBeginAcceptSessionReceiver : string * string * Microsoft.ServiceBus.Messaging.ReceiveMode * TimeSpan * AsyncCallback * obj -> IAsyncResult
Protected MustOverride Function OnBeginAcceptSessionReceiver (entityName As String, sessionId As String, receiveMode As ReceiveMode, timeout As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters

entityName
String

The name of the entity.

sessionId
String

The session identifier.

receiveMode
ReceiveMode

The message receive mode.

timeout
TimeSpan

The wait time before the operation 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 information about the receive operation.

Returns

An IAsyncResult object that references the asynchronous accept session receiver action.

Applies to