This topic has not yet been rated - Rate this topic

QueueClient.AcceptMessageSession Method (String)

Accepts a message session that allows grouping of related messages for processing in a single transaction using the given session identifier.

Namespace:  Microsoft.ServiceBus.Messaging
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)
public MessageSession AcceptMessageSession(
	string sessionId
)

Parameters

sessionId
Type: System.String
The session identifier of the message session.

Return Value

Type: Microsoft.ServiceBus.Messaging.MessageSession
A MessageSession that allows grouping of related messages for processing in a single transaction.
ExceptionCondition
ArgumentException

Thrown if sessionId is null, empty, or white spaces.

TimeoutException

Thrown if the operation exceeded the timeout value set by OperationTimeout.

OperationCanceledException

Thrown if the client is already closed, aborted, or disposed.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.
facebook page visit twitter rss feed newsletter