Class SystemConfigurationRuntimeCache
Singleton runtime cache for the current system configuration snapshot.
Inherited Members
Namespace: Serenity.SystemConfiguration.Application.Services
Assembly: Serenity.SystemConfiguration.Application.dll
Syntax
public class SystemConfigurationRuntimeCache
Constructors
SystemConfigurationRuntimeCache()
Declaration
public SystemConfigurationRuntimeCache()
Properties
Has
Indicates whether a snapshot is currently cached.
Declaration
public bool Has { get; }
Property Value
| Type | Description |
|---|---|
| bool | True if a snapshot is cached; otherwise, false. |
Instance
Gets the singleton instance.
Declaration
public static SystemConfigurationRuntimeCache Instance { get; }
Property Value
| Type | Description |
|---|---|
| SystemConfigurationRuntimeCache | The singleton instance of SystemConfigurationRuntimeCache. |
Methods
Get()
Gets the currently cached system configuration snapshot.
Declaration
public ISystemConfigurationSnapshot Get()
Returns
| Type | Description |
|---|---|
| ISystemConfigurationSnapshot | The currently cached system configuration snapshot. |
Set(ISystemConfigurationSnapshot)
Private constructor to enforce singleton pattern.
Declaration
public void Set(ISystemConfigurationSnapshot s)
Parameters
| Type | Name | Description |
|---|---|---|
| ISystemConfigurationSnapshot | s |