Table of Contents

Class ActiveSessionOptions

Namespace
MVVrus.AspNetCore.ActiveSession
Assembly
MVVrus.AspNetCore.ActiveSession.dll

The object containing options for configuring an ActiveSession feature

public record ActiveSessionOptions : IEquatable<ActiveSessionOptions>
Inheritance
ActiveSessionOptions
Implements
Inherited Members

Remarks

This record structure mimics the structure of the configuration section for the ActiveSession feature It has properties with the same name as keys in the configuration section So it documents the configuration section The name of the configuration section itself is "MVVrus.ActiveSessions" (a value of the CONFIG_SECTION_NAME constant)

Properties

ActiveSessionSize

Default size of an IActiveSession-implementing object

CleanupLoggingTimeoutMs

Timeout for logging runner cleanup outcome

DefaultEnumerableAdvance

Default number of items to fetch by GetRequireAsync method of runners, returning an IEnumerable{TItem} result

DefaultEnumerableQueueSize

Default size of a queue used by GetRequireAsync method of runners, returning an IEnumerable{TItem} result

DefaultRunnerSize

Default size of an IRunner-implementing object

HostId

This host identifier.

MaxLifetime

Maximum lifetime for ActiveSession objects (measured from a session creation time)

OwnCacheOptions

Options used to set up own MemoryCache instance (ignored for shared cache)

PathRegexTimeout

Timeout for processing HTTP request path string by a middleware Regex-based filter

Prefix

Prefix for all keys of ActiveSession variables in the ISession store

PreloadActiveSession

Asynchronously preload IActiveSessionFeature.ActiveSession before processing the rest of the pipeline

RunnerIdleTimeout

Maximum idle time for runner objects

ThrowOnRemoteRunner

Throw exception if the runner is running by the remote application instance

TrackStatistics

Track storage statistics

UseOwnCache

The flag to use own (not shared) MemoryCache instance as an ActiveSession objects storage

UseSessionServicesAsRequestServices

Replace value of RequestServices in HttpContext by the value of the ActiveSession.SessionServices