共用方式為


SessionHandlerOptions.MaxAutoRenewDuration Property

Definition

Gets or sets the duration for which the session lock will be renewed automatically. If a session lock is going to expire, this value is the max duration for the session lock to be automatically renewed.

public TimeSpan MaxAutoRenewDuration { get; set; }
member this.MaxAutoRenewDuration : TimeSpan with get, set
Public Property MaxAutoRenewDuration As TimeSpan

Property Value

The duration for which the session renew its state. Default is 5 min.

Remarks

If this auto renewal fails, clients will receive an exception in the ExceptionReceivedHandler.

Applies to