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.
|
|
|
|
using NPin.Framework.SettingManagement.Domain.Options;
|
|
|
|
|
using Volo.Abp.Caching;
|
|
|
|
|
using Volo.Abp.Domain;
|
|
|
|
|
using Volo.Abp.SettingManagement;
|
|
|
|
|
using Volo.Abp.Settings;
|
|
|
|
|
|
|
|
|
|
namespace NPin.Framework.SettingManagement.Domain;
|
|
|
|
|
|
|
|
|
|
[DependsOn(
|
|
|
|
|
typeof(AbpSettingsModule),
|
|
|
|
|
typeof(AbpDddDomainModule),
|
|
|
|
|
typeof(AbpSettingManagementDomainSharedModule),
|
|
|
|
|
typeof(AbpCachingModule)
|
|
|
|
|
)]
|
|
|
|
|
public class NPinFrameworkSettingManagementDomainModule : AbpModule
|
|
|
|
|
{
|
|
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
|
|
|
|
{
|
|
|
|
|
Configure<SettingManagementOptions>(options =>
|
|
|
|
|
{
|
|
|
|
|
options.Providers.Add<DefaultValueSettingManagementProvider>();
|
|
|
|
|
options.Providers.Add<ConfigurationSettingManagementProvider>();
|
|
|
|
|
options.Providers.Add<GlobalSettingManagementProvider>();
|
|
|
|
|
options.Providers.Add<TenantSettingManagementProvider>();
|
|
|
|
|
options.Providers.Add<UserSettingManagementProvider>();
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|