public RolePermissionChangeNotifier(IServiceProvider serviceProvider)
 {
     permissionModule     = serviceProvider.GetService <IPermissionModule>();
     permissionManagement = serviceProvider.GetService <PermissionManagement>();
 }
Exemplo n.º 2
0
 public AuthorizeFilter(IServiceProvider serviceProvider)
 {
     authorizeModule      = serviceProvider.GetRequiredService <IAuthorizeModule>();
     permissionManagement = serviceProvider.GetRequiredService <PermissionManagement>();
     permissionModule     = serviceProvider.GetService <IPermissionModule>();
 }