Table of Contents

Class ReportSessionCache

Namespace
ReportWright.AspNetCore
Assembly
ReportWright.AspNetCore.dll

The live sessions, by id, with idle expiry and a ceiling. One per server; sticky sessions are the host's concern when there are several.

public sealed class ReportSessionCache : IDisposable
Inheritance
ReportSessionCache
Implements
Inherited Members

Constructors

ReportSessionCache(ReportWrightOptions)

Initializes the cache from the options.

Properties

Count

Gets how many sessions are live.

Methods

Add(ReportSession)

Adds a session, evicting expired ones and the oldest when over the ceiling.

Dispose()
Remove(string)

Ends a session.

TryGet(string?, out ReportSession?)

Finds a live session and marks it used.