Пример #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Sender App");
            Requestor request = new Requestor(RequestQueueName, ReplyQueueName);

            request.ReceiveSync();

            int max = 10000;
            int i=0;
            while(i<max)
            {
                request.Send(i++.ToString());
            }

            Console.ReadLine();
        }
Пример #2
0
        static void Main(string[] args)
        {
            Console.WriteLine("Sender App");
            Requestor request = new Requestor(RequestQueueName, ReplyQueueName);


            request.ReceiveSync();

            int max = 10000;
            int i   = 0;

            while (i < max)
            {
                request.Send(i++.ToString());
            }



            Console.ReadLine();
        }
Пример #3
0
        static void Main(string[] args)
        {
            Console.WriteLine("Sender App");
            Requestor request = new Requestor(RequestQueueName, ReplyQueueName);


            request.ReceiveSync();

            int max = 10000;
            int i   = 0;

            for (int j = 1; j <= 2; j++)
            {
                while (i < max)
                {
                    request.Send(RequestQueueName + j.ToString() + ":" + i.ToString());
                }
            }



            Console.ReadLine();
        }