Table of Contents

Interface IConfigManager

Namespace
Oqtane.Infrastructure
Assembly
Oqtane.Server.dll
public interface IConfigManager

Methods

AddOrUpdateSetting<T>(string, string, T, bool)

void AddOrUpdateSetting<T>(string file, string key, T value, bool reload)

Parameters

file string
key string
value T
reload bool

Type Parameters

T

AddOrUpdateSetting<T>(string, T, bool)

void AddOrUpdateSetting<T>(string key, T value, bool reload)

Parameters

key string
value T
reload bool

Type Parameters

T

GetConnectionString()

string GetConnectionString()

Returns

string

GetConnectionString(string)

string GetConnectionString(string name)

Parameters

name string

Returns

string

GetInstallationId()

string GetInstallationId()

Returns

string

GetSection(string)

IConfigurationSection GetSection(string sectionKey)

Parameters

sectionKey string

Returns

IConfigurationSection

GetSetting<T>(string, string, T)

T GetSetting<T>(string sectionKey, string settingKey, T defaultValue)

Parameters

sectionKey string
settingKey string
defaultValue T

Returns

T

Type Parameters

T

GetSetting<T>(string, T)

T GetSetting<T>(string settingKey, T defaultValue)

Parameters

settingKey string
defaultValue T

Returns

T

Type Parameters

T

GetSettings(string)

Dictionary<string, string> GetSettings(string sectionKey)

Parameters

sectionKey string

Returns

Dictionary<string, string>

IsInstalled()

bool IsInstalled()

Returns

bool

Reload()

void Reload()

RemoveSetting(string, bool)

void RemoveSetting(string key, bool reload)

Parameters

key string
reload bool

RemoveSetting(string, string, bool)

void RemoveSetting(string file, string key, bool reload)

Parameters

file string
key string
reload bool