Share via


QueueClient.AcceptMessageSessionAsync Method

Definition

Overloads

AcceptMessageSessionAsync(String, Guid, TimeSpan)

Accepts a message non-exclusive locked session that allows grouping of related messages for processing in a single transaction using the given session identifier and session lock token.

AcceptMessageSessionAsync(String, Boolean, TimeSpan)

Accepts a message session that allows grouping of related messages for processing in a single transaction using the given session identifier with whether in exclusive mode.

AcceptMessageSessionAsync(String, TimeSpan)

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

AcceptMessageSessionAsync(String, Guid)

Accepts a message non-exclusive locked session that allows grouping of related messages for processing in a single transaction using the given session identifier and session lock token.

AcceptMessageSessionAsync(String, Boolean)

Accepts a message session that allows grouping of related messages for processing in a single transaction using the given session identifier with whether in exclusive mode.

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 given session identifier.

AcceptMessageSessionAsync(Boolean)

Asynchronously accepts a message session that allows grouping of related messages for processing in a single transaction with whether in exclusive mode and wait time.

AcceptMessageSessionAsync()

Asynchronously accepts a message session that allows grouping of related messages for processing in a single transaction.

AcceptMessageSessionAsync(Boolean, TimeSpan)

Asynchronously accepts a message session that allows grouping of related messages for processing in a single transaction with whether in exclusive mode and wait time.

AcceptMessageSessionAsync(String, Guid, TimeSpan)

Accepts a message non-exclusive locked session that allows grouping of related messages for processing in a single transaction using the given session identifier and session lock token.

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

The session identifier of the message session.

lockToken
Guid

The session locktoken

serverWaitTime
TimeSpan

The server wait timeout

Returns

Applies to

AcceptMessageSessionAsync(String, Boolean, TimeSpan)

Accepts a message session that allows grouping of related messages for processing in a single transaction using the given session identifier with whether in exclusive mode.

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

The session identifier of the message session.

isExclusiveMode
Boolean

Ture if exclusive mode, or false is not.

serverWaitTime
TimeSpan

The server wait timeout

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 given session identifier and 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

The result of an asynchronous operation.

Applies to

AcceptMessageSessionAsync(String, Guid)

Accepts a message non-exclusive locked session that allows grouping of related messages for processing in a single transaction using the given session identifier and session lock token.

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

The session identifier of the message session.

lockToken
Guid

The session lock token.

Returns

The result of an asynchronous operation.

Applies to

AcceptMessageSessionAsync(String, Boolean)

Accepts a message session that allows grouping of related messages for processing in a single transaction using the given session identifier with whether in exclusive mode.

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

The session identifier of the message session.

isExclusiveMode
Boolean

Ture if exclusive mode, or false is not.

Returns

The result of an asynchronous operation.

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

The result of an asynchronous operation.

Applies to

AcceptMessageSessionAsync(String)

Asynchronously accepts a message session that allows grouping of related messages for processing in a single transaction using the given session identifier.

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

The result of an asynchronous operation.

Applies to

AcceptMessageSessionAsync(Boolean)

Asynchronously accepts a message session that allows grouping of related messages for processing in a single transaction with whether in exclusive mode and wait time.

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

Ture if exclusive mode, or false is not.

Returns

The result of an asynchronous operation.

Applies to

AcceptMessageSessionAsync()

Asynchronously accepts a message session that allows grouping of related messages for processing in a single transaction.

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

The result of an asynchronous operation.

Applies to

AcceptMessageSessionAsync(Boolean, TimeSpan)

Asynchronously accepts a message session that allows grouping of related messages for processing in a single transaction with whether in exclusive mode and wait time.

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

Ture if exclusive mode, or false is not.

serverWaitTime
TimeSpan

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

Returns

The result of an asynchronous operation.

Applies to