Leggere in inglese

Condividi tramite


QueueClient.AcceptMessageSession Method

Definition

Overloads

AcceptMessageSession(String, Guid, TimeSpan)

Accepts a message non-exclusive locked session that allows grouping of related messages for processing in a single transaction using the given session identifier and session lock token.

AcceptMessageSession(String, TimeSpan)

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

AcceptMessageSession(String, Guid)

Accepts a message non-exclusive locked session that allows grouping of related messages for processing in a single transaction using the given session identifier and session lock token.

AcceptMessageSession(String, Boolean)

Accepts a message session that allows grouping of related messages for processing in a single transaction with whether in exclusive mode.

AcceptMessageSession(String, Boolean, TimeSpan)

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

AcceptMessageSession(TimeSpan)

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

AcceptMessageSession(String)

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

AcceptMessageSession(Boolean)

Accepts a message session that allows grouping of related messages for processing in a single transaction ith whether in exclusive mode.

AcceptMessageSession()

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

AcceptMessageSession(Boolean, TimeSpan)

Accepts a message session that allows grouping of related messages for processing in a single transaction ith whether in exclusive mode.

AcceptMessageSession(String, Guid, TimeSpan)

Accepts a message non-exclusive locked session that allows grouping of related messages for processing in a single transaction using the given session identifier and session lock token.

public Microsoft.ServiceBus.Messaging.MessageSession AcceptMessageSession (string sessionId, Guid lockToken, TimeSpan serverWaitTime);

Parameters

sessionId
String

The session identifier of the message session.

lockToken
Guid

The session locktoken

serverWaitTime
TimeSpan

The server wait timeout

Returns

Applies to

AcceptMessageSession(String, TimeSpan)

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

public Microsoft.ServiceBus.Messaging.MessageSession AcceptMessageSession (string sessionId, TimeSpan serverWaitTime);

Parameters

sessionId
String

The session identifier of the message session.

serverWaitTime
TimeSpan

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

Returns

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

Exceptions

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

Thrown if serverWaitTime is not a positive TimeSpan value.

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

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

Applies to

AcceptMessageSession(String, Guid)

Accepts a message non-exclusive locked session that allows grouping of related messages for processing in a single transaction using the given session identifier and session lock token.

public Microsoft.ServiceBus.Messaging.MessageSession AcceptMessageSession (string sessionId, Guid lockToken);

Parameters

sessionId
String

The session identifier of the message session.

lockToken
Guid

The session lock token.

Returns

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

Applies to

AcceptMessageSession(String, Boolean)

Accepts a message session that allows grouping of related messages for processing in a single transaction with whether in exclusive mode.

public Microsoft.ServiceBus.Messaging.MessageSession AcceptMessageSession (string sessionId, bool isExclusiveMode);

Parameters

sessionId
String

The session identifier of the message session.

isExclusiveMode
Boolean

Ture if exclusive mode, or false is not.

Returns

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

Applies to

AcceptMessageSession(String, Boolean, TimeSpan)

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

public Microsoft.ServiceBus.Messaging.MessageSession AcceptMessageSession (string sessionId, bool isExclusiveMode, TimeSpan serverWaitTime);

Parameters

sessionId
String

The session identifier of the message session.

isExclusiveMode
Boolean

Ture if exclusive mode, or false is not.

serverWaitTime
TimeSpan

The server wait timeout

Returns

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

Applies to

AcceptMessageSession(TimeSpan)

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

public Microsoft.ServiceBus.Messaging.MessageSession AcceptMessageSession (TimeSpan serverWaitTime);

Parameters

serverWaitTime
TimeSpan

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

Returns

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

Exceptions

Thrown if serverWaitTime is not a positive TimeSpan value.

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

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

Applies to

AcceptMessageSession(String)

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

public Microsoft.ServiceBus.Messaging.MessageSession AcceptMessageSession (string sessionId);

Parameters

sessionId
String

The session identifier of the message session.

Returns

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

Exceptions

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

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

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

Applies to

AcceptMessageSession(Boolean)

Accepts a message session that allows grouping of related messages for processing in a single transaction ith whether in exclusive mode.

public Microsoft.ServiceBus.Messaging.MessageSession AcceptMessageSession (bool isExclusiveMode);

Parameters

isExclusiveMode
Boolean

Ture if exclusive mode, or false is not.

Returns

Applies to

AcceptMessageSession()

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

public Microsoft.ServiceBus.Messaging.MessageSession AcceptMessageSession ();

Returns

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

Exceptions

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

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

Applies to

AcceptMessageSession(Boolean, TimeSpan)

Accepts a message session that allows grouping of related messages for processing in a single transaction ith whether in exclusive mode.

public Microsoft.ServiceBus.Messaging.MessageSession AcceptMessageSession (bool isExclusiveMode, TimeSpan serverWaitTime);

Parameters

isExclusiveMode
Boolean

Ture if exclusive mode, or false is not.

serverWaitTime
TimeSpan

The server wait timeout

Returns

Applies to