Esempio n. 1
0
        static void Main(string[] args)
        {
            CreateContainer();
            _container.StartServices();
            var commandBus = _container.Resolve<ICommandBus>();

            var cmd = new ShipOrder(Guid.NewGuid());
            commandBus.ExecuteAsync(cmd).Wait();

            Console.ReadLine();
            _container.StopServices();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            CreateContainer();
            _container.StartServices();
            var commandBus = _container.Resolve <ICommandBus>();

            var cmd = new ShipOrder(Guid.NewGuid());

            commandBus.ExecuteAsync(cmd).Wait();

            Console.ReadLine();
            _container.StopServices();
        }