public SingleThreadedSingleThreadedCommandDispatcher(ICommandExecutorResolver commandExecutorResolver,
                                                             ILogger logger)
        {
            _commandExecutorResolver = commandExecutorResolver;
            _logger = logger;

            Initialise();
        }
示例#2
0
        public void OneTimeSetUp()
        {
            this.container = new Container(cfg =>
            {
                cfg.IncludeRegistry(new HelloCommandExecutorRegistry(ServiceLifetime.Scoped));
            });

            var containerScan = this.container.WhatDidIScan();

            Console.WriteLine(containerScan);

            var containerContent = this.container.WhatDoIHave();

            Console.WriteLine(containerContent);

            this.commandExecutorResolver = this.container.GetInstance <ICommandExecutorResolver>();
        }
示例#3
0
 public CommandDispatcher(ICommandExecutorResolver commandExecutorResolver,
                          ILogger logger)
 {
     _commandExecutorResolver = commandExecutorResolver;
     _logger = logger;
 }