SALES: 1-800-867-1380

MessagingFactory.AcceptMessageSession Method ()


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 MessageSession AcceptMessageSession()

Return Value

Type: Microsoft.ServiceBus.Messaging.MessageSession

A MessageSession that allows grouping of related messages for processing in a single transaction.


AcceptMessageSession is currently only supported in the Service Bus for Windows Server. In the Microsoft Azure Service Bus, a NotSupportedException exception is returned.

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