Export (0) Print
Expand All

QueueClient.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)

'Declaration
Public Function AcceptMessageSessionAsync ( _
	serverWaitTime As TimeSpan _
) As Task(Of MessageSession)
'Usage
Dim instance As QueueClient 
Dim serverWaitTime As TimeSpan 
Dim returnValue As Task(Of MessageSession)

returnValue = instance.AcceptMessageSessionAsync(serverWaitTime)

Parameters

serverWaitTime
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)
The result of an asynchronous operation.

Community Additions

ADD
Show:
© 2015 Microsoft