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.

NoteNote

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft