SubscriptionClient.AcceptMessageSessionAsync Method (TimeSpan)


Asynchronously accepts a message session that allows grouping of related messages for processing in a single transaction using the specified server wait time.

Namespace:   Microsoft.ServiceBus.Messaging
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)

Public Function AcceptMessageSessionAsync (
	serverWaitTime As TimeSpan
) As Task(Of MessageSession)


Type: System.TimeSpan

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

Return Value

Type: System.Threading.Tasks.Task(Of MessageSession)

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

Return to top