Sdílet prostřednictvím


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

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>
Public Function AcceptMessageSessionAsync () As Task(Of IMessageSession)

Returns

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)

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>
Public Function AcceptMessageSessionAsync (sessionId As String) As Task(Of IMessageSession)

Parameters

sessionId
String

The sessionId present in all its messages.

Returns

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)

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>
Public Function AcceptMessageSessionAsync (operationTimeout As TimeSpan) As Task(Of IMessageSession)

Parameters

operationTimeout
TimeSpan

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

Returns

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)

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>
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 for to fetch the next session.

Returns

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