Interface IGlobalConfiguration
- Namespace
- ToSic.Sys.Configuration
- Assembly
- ToSic.Sys.Core.dll
Global configuration system.
[InternalApi_DoNotUse_MayChangeWithoutNotice]
public interface IGlobalConfiguration
Remarks
Should be setup as singleton. May someday be replaced by ConfigurationManager or other standard .net system.
Note that accessing any properties should happen through extension methods, which themselves ensure that default values and cleanup are done.
Methods
GetThis(string?)
string? GetThis(string? key = null)
Parameters
key
string
Returns
GetThisErrorOnNull(string?)
string GetThisErrorOnNull(string? key = null)
Parameters
key
string
Returns
GetThisOrSet(Func<string>, string?)
string? GetThisOrSet(Func<string> generator, string? key = null)
Parameters
Returns
SetThis(string?, string?)
string? SetThis(string? value, string? key = null)