AcceptMessageSession Method
Collapse the table of content
Expand the table of content

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
© 2015 Microsoft