예제 #1
0
 public MenuController(
     IMenuAppService menuAppService,
     IUserRoleFinder userRoleFinder)
 {
     MenuAppService = menuAppService;
     UserRoleFinder = userRoleFinder;
 }
예제 #2
0
 public RolePermissionManagementProvider(
     IPermissionGrantRepository permissionGrantRepository,
     IGuidGenerator guidGenerator,
     ICurrentTenant currentTenant,
     IUserRoleFinder userRoleFinder) : base(
         permissionGrantRepository,
         guidGenerator,
         currentTenant)
 {
     UserRoleFinder = userRoleFinder;
 }
 public IdentityPermissionManager(
     IPermissionDefinitionManager permissionDefinitionManager,
     IPermissionGrantRepository permissionGrantRepository,
     IPermissionStore permissionStore,
     IServiceProvider serviceProvider,
     IGuidGenerator guidGenerator,
     IOptions <PermissionManagementOptions> options,
     ICurrentTenant currentTenant,
     IUserRoleFinder userRoleFinder)
     : base(permissionDefinitionManager, permissionGrantRepository, permissionStore, serviceProvider, guidGenerator, options, currentTenant)
 {
     UserRoleFinder = userRoleFinder;
 }
 public RoleMenuManagementProvider(
     IMenuGrantRepository menuGrantRepository,
     IPermissionDefinitionManager permissionDefinitionManager,
     IMenuGrantChecker menuGrantChecker,
     IGuidGenerator guidGenerator,
     ICurrentTenant currentTenant,
     IUserRoleFinder userRoleFinder) : base(menuGrantRepository,
                                            permissionDefinitionManager,
                                            menuGrantChecker,
                                            guidGenerator,
                                            currentTenant
                                            )
 {
     _userRoleFinder = userRoleFinder;
 }
예제 #5
0
 public UserRoleFinder_Tests()
 {
     _userRoleFinder = GetRequiredService <IUserRoleFinder>();
     _testData       = GetRequiredService <IdentityTestData>();
 }