17 lines
643 B
C#
17 lines
643 B
C#
using Microsoft.Extensions.Configuration;
|
|
|
|
namespace Oqtane.Infrastructure
|
|
{
|
|
public interface IConfigManager
|
|
{
|
|
public IConfigurationSection GetSection(string sectionKey);
|
|
public T GetSetting<T>(string settingKey, T defaultValue);
|
|
public T GetSetting<T>(string sectionKey, string settingKey, T defaultValue);
|
|
void AddOrUpdateSetting<T>(string key, T value, bool reload);
|
|
void AddOrUpdateSetting<T>(string file, string key, T value, bool reload);
|
|
void RemoveSetting(string key, bool reload);
|
|
void RemoveSetting(string file, string key, bool reload);
|
|
void Reload();
|
|
}
|
|
}
|