Exemple #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)));
        }
Exemple #2
0
 public void Execute(Demo2Input input)
 {
     using (var context = new Context())
         using (var publisher = context.Publish())
         {
             publisher.Bind("tcp://*:5556");
             PublishMessages(publisher);
         }
 }
 public void Execute(Demo2Input input)
 {
     using (var context = new Context())
     using (var publisher = context.Publish())
     {
         publisher.Bind("tcp://*:5556");
         PublishMessages(publisher);
     }
 }
Exemple #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);
                }
        }
Exemple #5
0
 public void PositionWindow(Demo2Input input)
 {
     Console.SetWindowSize(45, 20);
     Console.SetBufferSize(45, 20);
     ConsoleApp.MoveWindow(25, 100);
 }
 public void PositionWindow(Demo2Input input)
 {
     Console.SetWindowSize(45, 20);
     Console.SetBufferSize(45, 20);
     ConsoleApp.MoveWindow(25, 100);
 }