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))); }
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 subscriber = context.Sub()) { AddSubscription(subscriber, input.ZipCodeFlag); subscriber.Connect("tcp://localhost:5556"); ListenForEvents(subscriber); } }
public void PositionWindow(Demo2Input input) { Console.SetWindowSize(45, 20); Console.SetBufferSize(45, 20); ConsoleApp.MoveWindow(25, 100); }