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(); }
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(); }