コード例 #1
0
 public RegisterDefinedRolesCommandHandler(
     CofoundryDbContext dbContext,
     ICommandExecutor commandExecutor,
     IRoleCache roleCache,
     IPermissionValidationService permissionValidationService,
     IEnumerable <IRoleDefinition> roleDefinitions,
     IRoleInitializerFactory roleInitializerFactory,
     IPermissionRepository permissionRepository
     )
 {
     _dbContext                   = dbContext;
     _commandExecutor             = commandExecutor;
     _roleCache                   = roleCache;
     _permissionValidationService = permissionValidationService;
     _roleDefinitions             = roleDefinitions;
     _roleInitializerFactory      = roleInitializerFactory;
     _permissionRepository        = permissionRepository;
 }
コード例 #2
0
 public RegisterPermissionsAndRolesCommandHandler(
     CofoundryDbContext dbContext,
     ICommandExecutor commandExecutor,
     IRoleCache roleCache,
     IPermissionValidationService permissionValidationService,
     IEnumerable <IRoleDefinition> roleDefinitions,
     IRoleInitializerFactory roleInitializerFactory,
     IPermissionRepository permissionRepository,
     IEntityDefinitionRepository entityDefinitionRepository,
     ITransactionScopeManager transactionScopeFactory
     )
 {
     _dbContext                   = dbContext;
     _commandExecutor             = commandExecutor;
     _roleCache                   = roleCache;
     _permissionValidationService = permissionValidationService;
     _roleDefinitions             = roleDefinitions;
     _roleInitializerFactory      = roleInitializerFactory;
     _permissionRepository        = permissionRepository;
     _entityDefinitionRepository  = entityDefinitionRepository;
     _transactionScopeFactory     = transactionScopeFactory;
 }