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; }
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; }