Table of Contents

Class SessionHandlerOptions

Namespace
Microsoft.ServiceBus.Messaging
Assembly
Microsoft.ServiceBus.dll

Represents the options for the session handler.

public class SessionHandlerOptions
Inheritance
SessionHandlerOptions
Inherited Members

Constructors

SessionHandlerOptions()

Initializes a new instance of the SessionHandlerOptions class.

public SessionHandlerOptions()

Properties

AutoComplete

Gets or sets whether the autocomplete option of the session handler is enabled.

public bool AutoComplete { get; set; }

Property Value

bool

true if the autocomplete option of the session handler is enabled; otherwise, false.

AutoRenewTimeout

Gets or sets the time needed before the session renew its state.

public TimeSpan AutoRenewTimeout { get; set; }

Property Value

TimeSpan

The time needed before the session renew its state.

MaxConcurrentSessions

Gets or sets the maximum number of existing sessions.

public int MaxConcurrentSessions { get; set; }

Property Value

int

The maximum number of existing sessions.

MessageWaitTimeout

Gets or sets the time needed before the message waiting expires.

public TimeSpan MessageWaitTimeout { get; set; }

Property Value

TimeSpan

The time needed before the message waiting expires.

Events

ExceptionReceived

Occurs when an exception occurred during session handling.

public event EventHandler<ExceptionReceivedEventArgs> ExceptionReceived

Event Type

EventHandler<ExceptionReceivedEventArgs>