public ParallelCommandExecutorContainer( IEntityframeworkContext efContext, IHttpContextAccessor httpContextAccessor) { _dbContext = efContext; _httpContextAccessor = httpContextAccessor; _executorConfigs = new List <ParallelCommandExecutorConfig>(); CommandContext = new CommandContext(); }
public ICommandExecutorContainer RegisterExecutor <TExecutor>() where TExecutor : class, ICommandExecutor { var executor = IocContainer.Resolve <TExecutor>(); var executorConfig = new CommandExecutorConfig(executor); CheckExecutorConfigDuplicate(executorConfig); _executorConfigs.Add(executorConfig); if (_dbContext == null) { _dbContext = executor.DbContext; } return(this); }
public ValuesController(IEntityframeworkContext efContext) { _commandBus = new CommandBus(); }
public MenuRepository(IEntityframeworkContext unitOfWork) : base(unitOfWork) { }
public RegisterCommandExecutor2(IEntityframeworkContext efContext) { _efContext = efContext; _menuRepository = new MenuRepository(efContext); }
public Repository(IEntityframeworkContext unitWork) : base(unitWork) { _unitWork = (EntityframeworkContext)unitWork; }