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.

16 lines
593 B
C#

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