Example #1
0
        protected override void InitializeFrom(Binding binding)
        {
            base.InitializeFrom(binding);
            QpidBinding qpidbinding = binding as QpidBinding;

            if (qpidbinding != null)
            {
                Host                   = qpidbinding.Host;
                OneWayOnly             = qpidbinding.OneWayOnly;
                TransactionFlowEnabled = qpidbinding.TransactionFlow;
                VirtualHost            = qpidbinding.VirtualHost;
                PortNumber             = qpidbinding.PortNumber;
                UserName               = qpidbinding.UserName;
                Password               = qpidbinding.Password;
            }
        }
Example #2
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();
        }
Example #3
0
        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();
        }