SubscriptionClient.AcceptMessageSessionAsync SubscriptionClient.AcceptMessageSessionAsync SubscriptionClient.AcceptMessageSessionAsync Method

Definition

Overloads

AcceptMessageSessionAsync(String, Guid, TimeSpan) AcceptMessageSessionAsync(String, Guid, TimeSpan) AcceptMessageSessionAsync(String, Guid, TimeSpan)
AcceptMessageSessionAsync(String, Boolean, TimeSpan) AcceptMessageSessionAsync(String, Boolean, TimeSpan) AcceptMessageSessionAsync(String, Boolean, TimeSpan)
AcceptMessageSessionAsync(String, TimeSpan) AcceptMessageSessionAsync(String, 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, Guid) AcceptMessageSessionAsync(String, Guid)
AcceptMessageSessionAsync(String, Boolean) AcceptMessageSessionAsync(String, Boolean) AcceptMessageSessionAsync(String, Boolean)
AcceptMessageSessionAsync(Boolean, TimeSpan) AcceptMessageSessionAsync(Boolean, TimeSpan) AcceptMessageSessionAsync(Boolean, TimeSpan)
AcceptMessageSessionAsync(String) AcceptMessageSessionAsync(String) 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(Boolean) AcceptMessageSessionAsync(Boolean)
AcceptMessageSessionAsync() AcceptMessageSessionAsync() 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(TimeSpan) AcceptMessageSessionAsync(TimeSpan) 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, Guid, TimeSpan) AcceptMessageSessionAsync(String, Guid, 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 String String
lockToken
Guid Guid Guid
serverWaitTime
TimeSpan TimeSpan TimeSpan

Returns

AcceptMessageSessionAsync(String, Boolean, TimeSpan) AcceptMessageSessionAsync(String, Boolean, TimeSpan) 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 String String
isExclusiveMode
Boolean Boolean Boolean
serverWaitTime
TimeSpan TimeSpan TimeSpan

Returns

AcceptMessageSessionAsync(String, TimeSpan) AcceptMessageSessionAsync(String, 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.

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 String String

The session identifier of the message session.

serverWaitTime
TimeSpan TimeSpan 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.

AcceptMessageSessionAsync(String, Guid) AcceptMessageSessionAsync(String, Guid) 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 String String
lockToken
Guid Guid Guid

Returns

AcceptMessageSessionAsync(String, Boolean) AcceptMessageSessionAsync(String, Boolean) 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 String String
isExclusiveMode
Boolean Boolean Boolean

Returns

AcceptMessageSessionAsync(Boolean, TimeSpan) AcceptMessageSessionAsync(Boolean, TimeSpan) 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 Boolean Boolean
serverWaitTime
TimeSpan TimeSpan TimeSpan

Returns

AcceptMessageSessionAsync(String) AcceptMessageSessionAsync(String) 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 String String

The session identifier of the message session.

Returns

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

AcceptMessageSessionAsync(Boolean) AcceptMessageSessionAsync(Boolean) 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 Boolean Boolean

Returns

AcceptMessageSessionAsync() AcceptMessageSessionAsync() 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.

AcceptMessageSessionAsync(TimeSpan) AcceptMessageSessionAsync(TimeSpan) 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 TimeSpan 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