SubscriptionClient.OnBeginAcceptMessageSession(String, ReceiveMode, TimeSpan, TimeSpan, AsyncCallback, Object) SubscriptionClient.OnBeginAcceptMessageSession(String, ReceiveMode, TimeSpan, TimeSpan, AsyncCallback, Object) Method

Definition

Executes upon calling the BeginAcceptMessageSession operation.

protected abstract IAsyncResult OnBeginAcceptMessageSession (string sessionId, Microsoft.ServiceBus.Messaging.ReceiveMode receiveMode, TimeSpan serverWaitTime, TimeSpan timeout, AsyncCallback callback, object state);
abstract member OnBeginAcceptMessageSession : string * Microsoft.ServiceBus.Messaging.ReceiveMode * TimeSpan * TimeSpan * AsyncCallback * obj -> IAsyncResult
Parameters
sessionId
String String

The session identifier of the message session.

receiveMode
ReceiveMode ReceiveMode

The receive mode when processing with the receive messages.

serverWaitTime
TimeSpan TimeSpan

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

timeout
TimeSpan TimeSpan

The time span the server waits for processing messages 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 accept a message session.

Applies to