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

System.Threading.Tasks.Task<IMessageSession>

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

The sessionId present in all its messages.

Returns

System.Threading.Tasks.Task<IMessageSession>

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 serverWaitTime);
abstract member AcceptMessageSessionAsync : TimeSpan -> System.Threading.Tasks.Task<Microsoft.Azure.ServiceBus.IMessageSession>
Public Function AcceptMessageSessionAsync (serverWaitTime As TimeSpan) As Task(Of IMessageSession)

Parameters

serverWaitTime
System.TimeSpan

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

Returns

System.Threading.Tasks.Task<IMessageSession>

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 serverWaitTime);
abstract member AcceptMessageSessionAsync : string * TimeSpan -> System.Threading.Tasks.Task<Microsoft.Azure.ServiceBus.IMessageSession>
Public Function AcceptMessageSessionAsync (sessionId As String, serverWaitTime As TimeSpan) As Task(Of IMessageSession)

Parameters

sessionId
System.String

The sessionId present in all its messages.

serverWaitTime
System.TimeSpan

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

Returns

System.Threading.Tasks.Task<IMessageSession>

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