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

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
System.String
lockToken
System.Guid
serverWaitTime
System.TimeSpan

Returns

System.Threading.Tasks.Task<MessageSession>

Implements

Microsoft.ServiceBus.Messaging.IMessageSessionEntity.AcceptMessageSessionAsync(System.String,System.Guid,System.TimeSpan)

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
System.String
isExclusiveMode
System.Boolean
serverWaitTime
System.TimeSpan

Returns

System.Threading.Tasks.Task<MessageSession>

Implements

Microsoft.ServiceBus.Messaging.IMessageSessionEntity.AcceptMessageSessionAsync(System.String,System.Boolean,System.TimeSpan)

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

The session identifier of the message session.

serverWaitTime
System.TimeSpan

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

Returns

System.Threading.Tasks.Task<MessageSession>

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

Implements

Microsoft.ServiceBus.Messaging.IMessageSessionEntity.AcceptMessageSessionAsync(System.String,System.TimeSpan)

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
System.String
lockToken
System.Guid

Returns

System.Threading.Tasks.Task<MessageSession>

Implements

Microsoft.ServiceBus.Messaging.IMessageSessionEntity.AcceptMessageSessionAsync(System.String,System.Guid)

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
System.String
isExclusiveMode
System.Boolean

Returns

System.Threading.Tasks.Task<MessageSession>

Implements

Microsoft.ServiceBus.Messaging.IMessageSessionEntity.AcceptMessageSessionAsync(System.String,System.Boolean)

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

Returns

System.Threading.Tasks.Task<MessageSession>

Implements

Microsoft.ServiceBus.Messaging.IMessageSessionEntity.AcceptMessageSessionAsync(System.Boolean,System.TimeSpan)

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

The session identifier of the message session.

Returns

System.Threading.Tasks.Task<MessageSession>

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

Implements

Microsoft.ServiceBus.Messaging.IMessageSessionEntity.AcceptMessageSessionAsync(System.String)

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
System.Boolean

Returns

System.Threading.Tasks.Task<MessageSession>

Implements

Microsoft.ServiceBus.Messaging.IMessageSessionEntity.AcceptMessageSessionAsync(System.Boolean)

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

System.Threading.Tasks.Task<MessageSession>

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

Implements

Microsoft.ServiceBus.Messaging.IMessageSessionEntity.AcceptMessageSessionAsync

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

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

Returns

System.Threading.Tasks.Task<MessageSession>

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

Implements

Microsoft.ServiceBus.Messaging.IMessageSessionEntity.AcceptMessageSessionAsync(System.TimeSpan)

Applies to