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.

22 lines
790 B
C#

using Microsoft.Extensions.DependencyInjection;
using NPin.Framework.Mapster;
using NPin.Framework.Upms.Domain.Shared.Options;
using Volo.Abp.Domain;
namespace NPin.Framework.Upms.Domain.Shared;
[DependsOn(
typeof(AbpDddDomainSharedModule),
typeof(NPinFrameworkMapsterModule)
)]
public class NPinFrameworkUpmsDomainSharedModule : AbpModule
{
public override void ConfigureServices(ServiceConfigurationContext context)
{
var configuration = context.Services.GetConfiguration();
// 配置文件读取
Configure<JwtOptions>(configuration.GetSection(nameof(JwtOptions)));
Configure<RefreshJwtOptions>(configuration.GetSection(nameof(RefreshJwtOptions)));
Configure<UpmsOptions>(configuration.GetSection(nameof(UpmsOptions)));
}
}