SALES: 1-800-867-1380

MessagingFactory.AcceptMessageSession Method (TimeSpan)

 

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(
	TimeSpan serverWaitTime
)

Parameters

serverWaitTime
Type: System.TimeSpan

The processing time out.

Return Value

Type: Microsoft.ServiceBus.Messaging.MessageSession

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

System_CAPS_noteNote

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