Table of Contents

Class ConfigManager

Namespace
Oqtane.Infrastructure
Assembly
Oqtane.Server.dll
public class ConfigManager : IConfigManager
Inheritance
object
ConfigManager
Implements

Constructors

ConfigManager(IConfigurationRoot)

public ConfigManager(IConfigurationRoot config)

Parameters

config IConfigurationRoot

Methods

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

public 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)

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

Parameters

key string
value T
reload bool

Type Parameters

T

GetConnectionString()

public string GetConnectionString()

Returns

string

GetConnectionString(string)

public string GetConnectionString(string name)

Parameters

name string

Returns

string

GetInstallationId()

public string GetInstallationId()

Returns

string

GetSection(string)

public IConfigurationSection GetSection(string key)

Parameters

key string

Returns

IConfigurationSection

GetSetting<T>(string, string, T)

public 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)

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

Parameters

sectionKey string
defaultValue T

Returns

T

Type Parameters

T

GetSettings(string)

public Dictionary<string, string> GetSettings(string sectionKey)

Parameters

sectionKey string

Returns

Dictionary<string, string>

IsInstalled()

public bool IsInstalled()

Returns

bool

Reload()

public void Reload()

RemoveSetting(string, bool)

public void RemoveSetting(string key, bool reload)

Parameters

key string
reload bool

RemoveSetting(string, string, bool)

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

Parameters

file string
key string
reload bool