using System.Collections.Generic; using Microsoft.Extensions.Configuration; namespace Oqtane.Infrastructure { public interface IConfigManager { public IConfigurationSection GetSection(string sectionKey); public T GetSetting(string settingKey, T defaultValue); public T GetSetting(string sectionKey, string settingKey, T defaultValue); public Dictionary GetSettings(string sectionKey); void AddOrUpdateSetting(string key, T value, bool reload); void AddOrUpdateSetting(string file, string key, T value, bool reload); void RemoveSetting(string key, bool reload); void RemoveSetting(string file, string key, bool reload); void Reload(); public string GetConnectionString(); public string GetConnectionString(string name); public bool IsInstalled(); public string GetInstallationId(); } }