예제 #1
0
        public static void Main(string[] args)
        {
            IServiceProvider serviceProvider = GetServiceProvider();

            //serviceProvider
            //    .GetService<IDatabaseInitializationService>()
            //    .Reset(true);

            IReader reader = new Reader();
            IWriter writer = new Writer();

            var dispacher = new CommandDispacher(serviceProvider);
            var engine    = new Engine(dispacher, reader, writer);

            engine.Run();
        }
 public ProductsPutController(CommandDispacher commandBus)
 {
     this.commandBus = commandBus;
 }