static void Main(string[] args) { Trace.Listeners.Add(new ConsoleTraceListener()); using (EchoClient client = new EchoClient()) { client.Port = 8088; client.Host = "localhost"; client.Start(); Console.WriteLine("Press enter key to exit..."); Console.ReadLine(); client.Stop(); } }