You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
763 B
25 lines
763 B
3 years ago
|
using Sanhe.Abp.MenuManagement.Identity;
|
||
|
using Volo.Abp.Identity;
|
||
|
using Volo.Abp.Modularity;
|
||
|
using Volo.Abp.PermissionManagement;
|
||
|
|
||
|
namespace Sanhe.Abp.MenuManagement
|
||
|
{
|
||
|
[DependsOn(
|
||
|
typeof(AbpIdentityDomainSharedModule),
|
||
|
typeof(AbpPermissionManagementDomainModule),
|
||
|
typeof(MenuManagementDomainModule)
|
||
|
)]
|
||
|
public class MenuManagementDomainIdentityModule : AbpModule
|
||
|
{
|
||
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
||
|
{
|
||
|
Configure<MenuManagementOptions>(options =>
|
||
|
{
|
||
|
options.ManagementProviders.Add<UserMenuManagementProvider>();
|
||
|
options.ManagementProviders.Add<RoleMenuManagementProvider>();
|
||
|
});
|
||
|
}
|
||
|
}
|
||
|
}
|