Esempio n. 1
0
        public void PositionWindow(Demo2Input input)
        {
            Console.SetWindowSize(45, 20);
            Console.SetBufferSize(45, 20);

            var clientNumber = int.Parse(input.ClientIdFlag);

            ConsoleApp.MoveWindow(450 + (25 * (clientNumber - 1)), 100 + (200 * (clientNumber - 1)));
        }
Esempio n. 2
0
 public void Execute(Demo2Input input)
 {
     using (var context = new Context())
         using (var publisher = context.Publish())
         {
             publisher.Bind("tcp://*:5556");
             PublishMessages(publisher);
         }
 }
Esempio n. 3
0
 public void Execute(Demo2Input input)
 {
     using (var context = new Context())
     using (var publisher = context.Publish())
     {
         publisher.Bind("tcp://*:5556");
         PublishMessages(publisher);
     }
 }
Esempio n. 4
0
        public void Execute(Demo2Input input)
        {
            using (var context = new Context())
                using (var subscriber = context.Sub())
                {
                    AddSubscription(subscriber, input.ZipCodeFlag);
                    subscriber.Connect("tcp://localhost:5556");

                    ListenForEvents(subscriber);
                }
        }
Esempio n. 5
0
 public void PositionWindow(Demo2Input input)
 {
     Console.SetWindowSize(45, 20);
     Console.SetBufferSize(45, 20);
     ConsoleApp.MoveWindow(25, 100);
 }
Esempio n. 6
0
 public void PositionWindow(Demo2Input input)
 {
     Console.SetWindowSize(45, 20);
     Console.SetBufferSize(45, 20);
     ConsoleApp.MoveWindow(25, 100);
 }