示例#1
0
        static void Main()
        {
            var endpoint = new SelfHostedEndpoint();
            endpoint.Initialize();

            var orderer = new Orderer(endpoint.Bus);

            while (true)
            {
                var person = GetUserInput("Hi, i'm your friendly order taker, lets start with your name?");
                var product = GetUserInput("What would you like to order {0}?", person);

                orderer.PlaceOrder(product, person, DispalyServerResponse);

                Wait();
            }
        }
示例#2
0
        static void Main()
        {
            var endpoint = new SelfHostedEndpoint();

            endpoint.Initialize();

            var orderer = new Orderer(endpoint.Bus);

            while (true)
            {
                var person  = GetUserInput("Hi, i'm your friendly order taker, lets start with your name?");
                var product = GetUserInput("What would you like to order {0}?", person);

                orderer.PlaceOrder(product, person, DispalyServerResponse);

                Wait();
            }
        }