|
|
|
@ -13,7 +13,15 @@ public interface ISettingManagementProvider
|
|
|
|
|
/// <param name="setting"></param>
|
|
|
|
|
/// <param name="providerKey"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Task<string?> GetOrNullAsync([NotNull] SettingDefinition setting, [CanBeNull] string providerKey);
|
|
|
|
|
Task<string?> GetOrNullAsync(SettingDefinition setting, string? providerKey);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 通过前缀获取配置列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="prefix"></param>
|
|
|
|
|
/// <param name="providerKey"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Task<List<SettingValue>> GetByPrefixAsync(string prefix, string? providerKey);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 设置配置数据
|
|
|
|
@ -22,7 +30,7 @@ public interface ISettingManagementProvider
|
|
|
|
|
/// <param name="value"></param>
|
|
|
|
|
/// <param name="providerKey"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Task SetAsync([NotNull] SettingDefinition setting, [NotNull] string value, [CanBeNull] string providerKey);
|
|
|
|
|
Task SetAsync(SettingDefinition setting, string value, string? providerKey);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 清除配置项
|
|
|
|
@ -30,5 +38,5 @@ public interface ISettingManagementProvider
|
|
|
|
|
/// <param name="setting"></param>
|
|
|
|
|
/// <param name="providerKey"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Task ClearAsync([NotNull] SettingDefinition setting, [CanBeNull] string providerKey);
|
|
|
|
|
Task ClearAsync(SettingDefinition setting, string? providerKey);
|
|
|
|
|
}
|