Esempio n. 1
0
        static void Main(string[] args)
        {
            PrepareQueues.Prepare("msmq://localhost/LearningRhinoESB.E5.Customer", QueueType.Standard);

            var host = new DefaultHost();

            host.Start <CustomerBootStrapper>();

            Console.WriteLine("Ayende: Visiting Starbucks ...");
            Console.ReadLine();

            var bus = host.Bus as IServiceBus;

            var customer = new CustomerController(bus)
            {
                Drink = "Hot Chocolate",
                Name  = "Ayende",
                Size  = DrinkSize.Venti
            };

            customer.BuyDrinkSync();

            Console.ReadLine();
        }