Table of Contents

Class RegistryStateService

Namespace
SharpConsoleUI.Core
Assembly
SharpConsoleUI.dll

Integrates AppRegistry with the ConsoleWindowSystem lifecycle. Calls Load() during initialization and Save() on Dispose() (shutdown). Exposes all AppRegistry members via explicit delegation so callers don't need to unwrap an inner object.

public class RegistryStateService : IDisposable
Inheritance
RegistryStateService
Implements
Inherited Members
Extension Methods

Constructors

RegistryStateService(AppRegistry)

public RegistryStateService(AppRegistry registry)

Parameters

registry AppRegistry

The AppRegistry to delegate to.

Methods

Dispose()

Saves to storage and disposes the underlying AppRegistry.

public void Dispose()

Load()

Reloads from storage, replacing the in-memory tree. Destructive — discards any unsaved writes.

public void Load()

OpenSection(string)

Opens a section at the given path. Creates intermediate nodes as needed.

public RegistrySection OpenSection(string path)

Parameters

path string

Returns

RegistrySection

Save()

Saves the registry to storage.

public void Save()