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

SetSession(string, SessionData)

Store or update session data for a domain

public void SetSession(string domain, SessionData sessionData)

Parameters

domain string
sessionData SessionData