You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
697 B
C#

using JetBrains.Annotations;
using Volo.Abp.Settings;
namespace NPin.Framework.SettingManagement.Domain;
/// <summary>
/// 设置管理器
/// </summary>
public interface ISettingManager
{
Task<string?> GetOrNullAsync(string name, string providerName, string? providerKey, bool fallback = true);
Task<List<SettingValue>> GetAllAsync(string providerName, string? providerKey, bool fallback = true);
Task<Dictionary<string, SettingValue>> GetAllByPrefixAsync(string namePrefix, string providerName, string? providerKey, bool fallback = true);
Task SetAsync(string name, string? value, string providerName, string? providerKey, bool forceToSet = false);
}