Share via


SubscriptionClient.AcceptMessageSessionAsync Method

Definition

Overloads

AcceptMessageSessionAsync(String, Guid, TimeSpan)
AcceptMessageSessionAsync(String, Boolean, TimeSpan)
AcceptMessageSessionAsync(String, TimeSpan)

Asynchronously accepts a message session that allows grouping of related messages for processing in a single transaction using the specified server wait time.

AcceptMessageSessionAsync(String, Guid)
AcceptMessageSessionAsync(String, Boolean)
AcceptMessageSessionAsync(TimeSpan)

Asynchronously accepts a message session that allows grouping of related messages for processing in a single transaction using the specified server wait time.

AcceptMessageSessionAsync(String)

Asynchronously accepts a message session that allows grouping of related messages for processing in a single transaction using the specified server wait time.

AcceptMessageSessionAsync(Boolean)
AcceptMessageSessionAsync()

Asynchronously accepts a message session that allows grouping of related messages for processing in a single transaction using the specified server wait time.

AcceptMessageSessionAsync(Boolean, TimeSpan)

AcceptMessageSessionAsync(String, Guid, TimeSpan)

public System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.MessageSession> AcceptMessageSessionAsync (string sessionId, Guid lockToken, TimeSpan serverWaitTime);
abstract member AcceptMessageSessionAsync : string * Guid * TimeSpan -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.MessageSession>
override this.AcceptMessageSessionAsync : string * Guid * TimeSpan -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.MessageSession>
Public Function AcceptMessageSessionAsync (sessionId As String, lockToken As Guid, serverWaitTime As TimeSpan) As Task(Of MessageSession)

Parameters

sessionId
String
lockToken
Guid
serverWaitTime
TimeSpan

Returns

Applies to

AcceptMessageSessionAsync(String, Boolean, TimeSpan)

public System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.MessageSession> AcceptMessageSessionAsync (string sessionId, bool isExclusiveMode, TimeSpan serverWaitTime);
abstract member AcceptMessageSessionAsync : string * bool * TimeSpan -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.MessageSession>
override this.AcceptMessageSessionAsync : string * bool * TimeSpan -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.MessageSession>
Public Function AcceptMessageSessionAsync (sessionId As String, isExclusiveMode As Boolean, serverWaitTime As TimeSpan) As Task(Of MessageSession)

Parameters

sessionId
String
isExclusiveMode
Boolean
serverWaitTime
TimeSpan

Returns

Applies to

AcceptMessageSessionAsync(String, TimeSpan)

Asynchronously accepts a message session that allows grouping of related messages for processing in a single transaction using the specified server wait time.

public System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.MessageSession> AcceptMessageSessionAsync (string sessionId, TimeSpan serverWaitTime);
abstract member AcceptMessageSessionAsync : string * TimeSpan -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.MessageSession>
override this.AcceptMessageSessionAsync : string * TimeSpan -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.MessageSession>
Public Function AcceptMessageSessionAsync (sessionId As String, serverWaitTime As TimeSpan) As Task(Of MessageSession)

Parameters

sessionId
String

The session identifier of the message session.

serverWaitTime
TimeSpan

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

Returns

A task instance that represents the asynchronous accept message session operation.

Applies to

AcceptMessageSessionAsync(String, Guid)

public System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.MessageSession> AcceptMessageSessionAsync (string sessionId, Guid lockToken);
abstract member AcceptMessageSessionAsync : string * Guid -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.MessageSession>
override this.AcceptMessageSessionAsync : string * Guid -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.MessageSession>
Public Function AcceptMessageSessionAsync (sessionId As String, lockToken As Guid) As Task(Of MessageSession)

Parameters

sessionId
String
lockToken
Guid

Returns

Applies to

AcceptMessageSessionAsync(String, Boolean)

public System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.MessageSession> AcceptMessageSessionAsync (string sessionId, bool isExclusiveMode);
abstract member AcceptMessageSessionAsync : string * bool -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.MessageSession>
override this.AcceptMessageSessionAsync : string * bool -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.MessageSession>
Public Function AcceptMessageSessionAsync (sessionId As String, isExclusiveMode As Boolean) As Task(Of MessageSession)

Parameters

sessionId
String
isExclusiveMode
Boolean

Returns

Applies to

AcceptMessageSessionAsync(TimeSpan)

Asynchronously accepts a message session that allows grouping of related messages for processing in a single transaction using the specified server wait time.

public System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.MessageSession> AcceptMessageSessionAsync (TimeSpan serverWaitTime);
abstract member AcceptMessageSessionAsync : TimeSpan -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.MessageSession>
override this.AcceptMessageSessionAsync : TimeSpan -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.MessageSession>
Public Function AcceptMessageSessionAsync (serverWaitTime As TimeSpan) As Task(Of MessageSession)

Parameters

serverWaitTime
TimeSpan

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

Returns

A task instance that represents the asynchronous accept message session operation.

Applies to

AcceptMessageSessionAsync(String)

Asynchronously accepts a message session that allows grouping of related messages for processing in a single transaction using the specified server wait time.

public System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.MessageSession> AcceptMessageSessionAsync (string sessionId);
abstract member AcceptMessageSessionAsync : string -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.MessageSession>
override this.AcceptMessageSessionAsync : string -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.MessageSession>
Public Function AcceptMessageSessionAsync (sessionId As String) As Task(Of MessageSession)

Parameters

sessionId
String

The session identifier of the message session.

Returns

A task instance that represents the asynchronous accept message session operation.

Applies to

AcceptMessageSessionAsync(Boolean)

public System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.MessageSession> AcceptMessageSessionAsync (bool isExclusiveMode);
abstract member AcceptMessageSessionAsync : bool -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.MessageSession>
override this.AcceptMessageSessionAsync : bool -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.MessageSession>
Public Function AcceptMessageSessionAsync (isExclusiveMode As Boolean) As Task(Of MessageSession)

Parameters

isExclusiveMode
Boolean

Returns

Applies to

AcceptMessageSessionAsync()

Asynchronously accepts a message session that allows grouping of related messages for processing in a single transaction using the specified server wait time.

public System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.MessageSession> AcceptMessageSessionAsync ();
abstract member AcceptMessageSessionAsync : unit -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.MessageSession>
override this.AcceptMessageSessionAsync : unit -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.MessageSession>
Public Function AcceptMessageSessionAsync () As Task(Of MessageSession)

Returns

A task instance that represents the asynchronous accept message session operation.

Applies to

AcceptMessageSessionAsync(Boolean, TimeSpan)

public System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.MessageSession> AcceptMessageSessionAsync (bool isExclusiveMode, TimeSpan serverWaitTime);
abstract member AcceptMessageSessionAsync : bool * TimeSpan -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.MessageSession>
override this.AcceptMessageSessionAsync : bool * TimeSpan -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.MessageSession>
Public Function AcceptMessageSessionAsync (isExclusiveMode As Boolean, serverWaitTime As TimeSpan) As Task(Of MessageSession)

Parameters

isExclusiveMode
Boolean
serverWaitTime
TimeSpan

Returns

Applies to