static void Main(string[] args) { Console.WriteLine("StartingProducer"); var host = new ClientAppHost(); host.Init(); host.Start("http://localhost:81/"); while (true) { Console.WriteLine("Press NTER to send a message"); Console.ReadLine(); host.SendMessage(); } }
public static void Main(string[] args) { Console.WriteLine("Starting producer"); var clientAppHost = new ClientAppHost(); clientAppHost.Init(); clientAppHost.Start("http://localhost:81/"); while (true) { Console.WriteLine("Press Enter to send a message"); Console.ReadLine(); clientAppHost.SendMessage(); } }