Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
AcceptMessageSession Method (TimeSpan)

SubscriptionClient.AcceptMessageSession Method (TimeSpan)

 

Accepts a message session that allows grouping of related messages for processing in a single transaction using the specified server wait time.

Namespace:   Microsoft.ServiceBus.Messaging
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)

public MessageSession AcceptMessageSession(
	TimeSpan serverWaitTime
)

Parameters

serverWaitTime
Type: System.TimeSpan

The time span the server waits for processing messages before it times out.

Return Value

Type: Microsoft.ServiceBus.Messaging.MessageSession

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

Exception Condition
ArgumentOutOfRangeException

Thrown if serverWaitTime is not a positive TimeSpan value.

TimeoutException

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

OperationCanceledException

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

Return to top
Show:
© 2015 Microsoft