Table of Contents

Class SessionStore

Namespace
Fluxzy.Rules.Session
Assembly
Fluxzy.Core.dll

Thread-safe storage for session data per domain. Tied to the proxy lifetime via VariableContext.

public class SessionStore
Inheritance
SessionStore
Inherited Members

Constructors

SessionStore()

public SessionStore()

Properties

Count

Get the number of stored sessions

public int Count { get; }

Property Value

int

Methods

ClearAll()

Clear all session data

public void ClearAll()

ClearSession(string)

Clear session data for a specific domain

public void ClearSession(string domain)

Parameters

domain string

GetOrCreateSession(string)

Get existing session or create a new one for the domain

public SessionData GetOrCreateSession(string domain)

Parameters

domain string

Returns

SessionData

GetSession(string)

Get session data for a domain, returns null if not found

public SessionData? GetSession(string domain)

Parameters

domain string

Returns

SessionData

GetSessionsForDomainWithParents(string)

Get all sessions that match the domain or its parent domains. For example, for "api.github.com", returns sessions for "api.github.com" and "github.com". Sessions are returned in order from most specific (exact match) to least specific (parent domains).

public IEnumerable<SessionData> GetSessionsForDomainWithParents(string domain)

Parameters

domain string

Returns

IEnumerable<SessionData>

SetSession(string, SessionData)

Store or update session data for a domain

public void SetSession(string domain, SessionData sessionData)

Parameters

domain string
sessionData SessionData