QueueClient.AcceptMessageSession QueueClient.AcceptMessageSession QueueClient.AcceptMessageSession Method

Definition

Overloads

AcceptMessageSession() AcceptMessageSession() AcceptMessageSession()

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

AcceptMessageSession(String) AcceptMessageSession(String) AcceptMessageSession(String)

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

AcceptMessageSession(TimeSpan) AcceptMessageSession(TimeSpan) 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, TimeSpan) AcceptMessageSession(String, TimeSpan) 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() AcceptMessageSession() AcceptMessageSession()

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

public Microsoft.ServiceBus.Messaging.MessageSession AcceptMessageSession ();
abstract member AcceptMessageSession : unit -> Microsoft.ServiceBus.Messaging.MessageSession
override this.AcceptMessageSession : unit -> Microsoft.ServiceBus.Messaging.MessageSession
Public Function AcceptMessageSession () As MessageSession
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.

AcceptMessageSession(String) AcceptMessageSession(String) 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);
abstract member AcceptMessageSession : string -> Microsoft.ServiceBus.Messaging.MessageSession
override this.AcceptMessageSession : string -> Microsoft.ServiceBus.Messaging.MessageSession
Public Function AcceptMessageSession (sessionId As String) As MessageSession
Parameters
sessionId
String String 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.

AcceptMessageSession(TimeSpan) AcceptMessageSession(TimeSpan) 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);
abstract member AcceptMessageSession : TimeSpan -> Microsoft.ServiceBus.Messaging.MessageSession
override this.AcceptMessageSession : TimeSpan -> Microsoft.ServiceBus.Messaging.MessageSession
Public Function AcceptMessageSession (serverWaitTime As TimeSpan) As MessageSession
Parameters
serverWaitTime
TimeSpan TimeSpan 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 the operation exceeded the timeout value set by serverWaitTime.

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

AcceptMessageSession(String, TimeSpan) AcceptMessageSession(String, TimeSpan) 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);
abstract member AcceptMessageSession : string * TimeSpan -> Microsoft.ServiceBus.Messaging.MessageSession
override this.AcceptMessageSession : string * TimeSpan -> Microsoft.ServiceBus.Messaging.MessageSession
Public Function AcceptMessageSession (sessionId As String, serverWaitTime As TimeSpan) As MessageSession
Parameters
sessionId
String String String

The session identifier of the message session.

serverWaitTime
TimeSpan TimeSpan 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 the operation exceeded the timeout value set by OperationTimeout.

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

Applies to