SubscriptionClient.OnBeginAcceptMessageSession 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);
Parameters
sessionId
String

The session identifier of the message session.

receiveMode
ReceiveMode

The receive mode when processing with the receive messages.

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.