Class SerenityHubRecents
LRU list (max 8) of the most recent tools launched from within the Hub, stored under
SerenityHubEditorPrefsStore (ADR-8). Records the launched tool's MenuPath — the only
handle SerenityHubLauncher has at launch time — most-recent-first, deduping an already-recent
path to the front instead of adding a duplicate. Per spec §8, this MUST only ever be written by
Launch(string), never by instrumenting individual tool windows.
Inherited Members
Namespace: Serenity.Localization.Installation.Settings.Editor.Hub.Services
Assembly: Serenity.UnityLocalization.Installation.Editor.dll
Syntax
public sealed class SerenityHubRecents
Constructors
SerenityHubRecents()
Declaration
public SerenityHubRecents()
SerenityHubRecents(ISerenityHubKeyValueStore)
Declaration
public SerenityHubRecents(ISerenityHubKeyValueStore store)
Parameters
| Type | Name | Description |
|---|---|---|
| ISerenityHubKeyValueStore | store |
Methods
ReadRecents()
Reads the current recents list, most-recent-first.
Declaration
public IReadOnlyList<string> ReadRecents()
Returns
| Type | Description |
|---|---|
| IReadOnlyList<string> |
RecordLaunch(string)
Records a Hub-originated launch of menuPath, moving it to the front.
Declaration
public void RecordLaunch(string menuPath)
Parameters
| Type | Name | Description |
|---|---|---|
| string | menuPath |