23 lines
872 B
C#
23 lines
872 B
C#
using Microsoft.Extensions.Configuration;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using Volo.Abp.Domain;
|
|
using Volo.Abp.Modularity;
|
|
using Yi.Framework.Mapster;
|
|
using Yi.Framework.Rbac.Domain.Shared.Options;
|
|
|
|
namespace Yi.Framework.Rbac.Domain.Shared
|
|
{
|
|
[DependsOn(typeof(AbpDddDomainSharedModule),
|
|
typeof(YiFrameworkMapsterModule)
|
|
)]
|
|
public class YiFrameworkRbacDomainSharedModule : 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<RbacOptions>(configuration.GetSection(nameof(RbacOptions)));
|
|
}
|
|
}
|
|
} |