Table of Contents

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

string

GetThisErrorOnNull(string?)

string GetThisErrorOnNull(string? key = null)

Parameters

key string

Returns

string

GetThisOrSet(Func<string>, string?)

string? GetThisOrSet(Func<string> generator, string? key = null)

Parameters

generator Func<string>
key string

Returns

string

SetThis(string?, string?)

string? SetThis(string? value, string? key = null)

Parameters

value string
key string

Returns

string