Share via


SubscriptionClient.OnBeginAcceptMessageSession Method

Definition

Executes upon calling the BeginAcceptMessageSession operation.

protected abstract IAsyncResult OnBeginAcceptMessageSession (string sessionId, Microsoft.ServiceBus.Messaging.ReceiveMode receiveMode, bool isExclusiveMode, Guid? lockToken, TimeSpan serverWaitTime, TimeSpan timeout, AsyncCallback callback, object state);
abstract member OnBeginAcceptMessageSession : string * Microsoft.ServiceBus.Messaging.ReceiveMode * bool * Nullable<Guid> * TimeSpan * TimeSpan * AsyncCallback * obj -> IAsyncResult
Protected MustOverride Function OnBeginAcceptMessageSession (sessionId As String, receiveMode As ReceiveMode, isExclusiveMode As Boolean, lockToken As Nullable(Of Guid), serverWaitTime As TimeSpan, timeout As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters

sessionId
String

The session identifier of the message session.

receiveMode
ReceiveMode

The receive mode when processing with the receive messages.

isExclusiveMode
Boolean
lockToken
Nullable<Guid>
serverWaitTime
TimeSpan

The time span the server waits for processing messages before it times out

timeout
TimeSpan

The time span the server waits for processing messages 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

An IAsyncResult that references the asynchronous operation to accept a message session.

Applies to