Exemple #1
0
        private static void Main(string[] args)
        {
            var p = new Program();

            Binding binding = new QpidBinding("192.168.1.14", 5673);

            p.StartService(binding);


            IUpperCase calc = p.StartClient(new QpidBinding("192.168.1.14", 5673));

            string[] messages = { "Twas brillig, and the slithy toves",
                                  "Did gire and gymble in the wabe.  ",
                                  "All mimsy were the borogroves,    ",
                                  "And the mome raths outgrabe.      " };
            foreach (string m in messages)
            {
                Console.Write(m + "  --UperCase-->  ");
                Console.Write(calc.ToUpperCase(m));
                Console.WriteLine();
            }

            Console.ReadLine();

            p.StopClient(calc);
            p.StopService();
        }
        private static void Main(string[] args)
        {
            var p = new Program();

            Binding binding = new QpidBinding("192.168.1.14", 5673);

            p.StartService(binding);

            Console.ReadLine();

            p.StopService();
        }