Share via


SessionClient.AcceptMessageSessionAsync Method

Definition

Overloads

AcceptMessageSessionAsync()

Gets a session object of any SessionId that can be used to receive messages for that sessionId.

AcceptMessageSessionAsync(String)

Gets a particular session object identified by sessionId that can be used to receive messages for that sessionId.

AcceptMessageSessionAsync(TimeSpan)

Gets a session object of any SessionId that can be used to receive messages for that sessionId.

AcceptMessageSessionAsync(String, TimeSpan)

Gets a particular session object identified by sessionId that can be used to receive messages for that sessionId.

AcceptMessageSessionAsync()

Source:
SessionClient.cs

Gets a session object of any SessionId that can be used to receive messages for that sessionId.

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

Returns

Implements

Remarks

All plugins registered on SessionClient will be applied to each Microsoft.Azure.ServiceBus.MessageSession that is accepted. Individual sessions can further register additional plugins.

Applies to

AcceptMessageSessionAsync(String)

Source:
SessionClient.cs

Gets a particular session object identified by sessionId that can be used to receive messages for that sessionId.

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

Parameters

sessionId
String

The sessionId present in all its messages.

Returns

Implements

Remarks

All plugins registered on SessionClient will be applied to each Microsoft.Azure.ServiceBus.MessageSession that is accepted. Individual sessions can further register additional plugins.

Applies to

AcceptMessageSessionAsync(TimeSpan)

Source:
SessionClient.cs

Gets a session object of any SessionId that can be used to receive messages for that sessionId.

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

Parameters

operationTimeout
TimeSpan

Amount of time for which the call should wait to fetch the next session.

Returns

Implements

Remarks

All plugins registered on SessionClient will be applied to each Microsoft.Azure.ServiceBus.MessageSession that is accepted. Individual sessions can further register additional plugins.

Applies to

AcceptMessageSessionAsync(String, TimeSpan)

Source:
SessionClient.cs

Gets a particular session object identified by sessionId that can be used to receive messages for that sessionId.

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

Parameters

sessionId
String

The sessionId present in all its messages.

operationTimeout
TimeSpan

Amount of time for which the call should wait to fetch the next session.

Returns

Implements

Remarks

All plugins registered on SessionClient will be applied to each Microsoft.Azure.ServiceBus.MessageSession that is accepted. Individual sessions can further register additional plugins.

Applies to