示例#1
0
 public ParallelCommandExecutorContainer(
     IEntityframeworkContext efContext,
     IHttpContextAccessor httpContextAccessor)
 {
     _dbContext           = efContext;
     _httpContextAccessor = httpContextAccessor;
     _executorConfigs     = new List <ParallelCommandExecutorConfig>();
     CommandContext       = new CommandContext();
 }
示例#2
0
        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);
        }
示例#3
0
 public ValuesController(IEntityframeworkContext efContext)
 {
     _commandBus = new CommandBus();
 }
 public MenuRepository(IEntityframeworkContext unitOfWork) : base(unitOfWork)
 {
 }
示例#5
0
 public RegisterCommandExecutor2(IEntityframeworkContext efContext)
 {
     _efContext      = efContext;
     _menuRepository = new MenuRepository(efContext);
 }
示例#6
0
 public Repository(IEntityframeworkContext unitWork) : base(unitWork)
 {
     _unitWork = (EntityframeworkContext)unitWork;
 }