16 lines
635 B
C#
16 lines
635 B
C#
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using JetBrains.Annotations;
|
|
using Volo.Abp.Settings;
|
|
|
|
namespace Yi.Framework.SettingManagement.Domain;
|
|
|
|
public interface ISettingManager
|
|
{
|
|
Task<string> GetOrNullAsync([NotNull] string name, [NotNull] string providerName, [CanBeNull] string providerKey, bool fallback = true);
|
|
|
|
Task<List<SettingValue>> GetAllAsync([NotNull] string providerName, [CanBeNull] string providerKey, bool fallback = true);
|
|
|
|
Task SetAsync([NotNull] string name, [CanBeNull] string value, [NotNull] string providerName, [CanBeNull] string providerKey, bool forceToSet = false);
|
|
}
|