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.

27 lines
850 B
C#

using Volo.Abp.DependencyInjection;
using Volo.Abp.Settings;
namespace NPin.Framework.SettingManagement.Domain.Store;
/// <summary>
/// 设置存储
/// </summary>
public class SettingStore : ISettingStore, ITransientDependency
{
protected ISettingManagementStore ManagementStore { get; }
public SettingStore(ISettingManagementStore managementStore)
{
ManagementStore = managementStore;
}
public virtual Task<string?> GetOrNullAsync(string name, string? providerName, string? providerKey)
{
return ManagementStore.GetOrNullAsync(name, providerName, providerKey);
}
public virtual Task<List<SettingValue>> GetAllAsync(string[] names, string? providerName, string? providerKey)
{
return ManagementStore.GetListAsync(names, providerName, providerKey);
}
}