Class SerenityHubSessionStateStore
ISerenityHubKeyValueStore backed by UnityEditor.SessionState — survives domain reloads within an editor session, resets on editor restart. Used for the validation result cache (ADR-7), where freshness must not persist across restarts.
Implements
Inherited Members
Namespace: Serenity.Localization.Installation.Settings.Editor.Hub.Services
Assembly: Serenity.UnityLocalization.Installation.Editor.dll
Syntax
public sealed class SerenityHubSessionStateStore : ISerenityHubKeyValueStore
Constructors
SerenityHubSessionStateStore()
Declaration
public SerenityHubSessionStateStore()
Methods
SetValue(string, string)
Writes value to key, replacing any existing value.
Declaration
public void SetValue(string key, string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | |
| string | value |
TryGetValue(string, out string)
Reads the value stored at key, if any.
Declaration
public bool TryGetValue(string key, out string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | |
| string | value |
Returns
| Type | Description |
|---|---|
| bool |