SALES: 1-800-867-1380

MessagingFactory.AcceptMessageSessionAsync Method (TimeSpan)


Asynchronously returns available sessions across all session-enabled subscriptions and queues in the service namespace.

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

public Task<MessageSession> AcceptMessageSessionAsync(
	TimeSpan serverWaitTime



The processing time out.

Return Value

Type: System.Threading.Tasks.Task<MessageSession>

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

Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2016 Microsoft