Пример #1
0
 public QueryExecutor(
     IModelValidationService modelValidationService,
     IQueryHandlerFactory queryHandlerFactory,
     IExecutionContextFactory executionContextFactory,
     IExecutePermissionValidationService executePermissionValidationService
     )
 {
     _modelValidationService             = modelValidationService;
     _queryHandlerFactory                = queryHandlerFactory;
     _executionContextFactory            = executionContextFactory;
     _executePermissionValidationService = executePermissionValidationService;
 }
Пример #2
0
 public CommandExecutor(
     DbContext dbContext,
     IModelValidationService modelValidationService,
     ICommandHandlerFactory commandHandlerFactory,
     IExecutionContextFactory executionContextFactory,
     ICommandLogService commandLogService,
     IExecutePermissionValidationService executePermissionValidationService
     )
 {
     _dbContext = dbContext;
     _modelValidationService             = modelValidationService;
     _commandHandlerFactory              = commandHandlerFactory;
     _executionContextFactory            = executionContextFactory;
     _commandLogService                  = commandLogService;
     _executePermissionValidationService = executePermissionValidationService;
 }