From b5042fa862aadb7ead07086e833f8df2ccbb6112 Mon Sep 17 00:00:00 2001 From: Ryan Newton Date: Wed, 12 Dec 2018 18:53:28 -0800 Subject: [PATCH] hello world: Switch to ReadLine --- Samples/HelloWorld/Client1/Program.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Samples/HelloWorld/Client1/Program.cs b/Samples/HelloWorld/Client1/Program.cs index 8c41e7a..81b71dd 100644 --- a/Samples/HelloWorld/Client1/Program.cs +++ b/Samples/HelloWorld/Client1/Program.cs @@ -30,17 +30,18 @@ namespace Client1 _server.ReceiveMessageFork("\n!! Client: Hello World 1!"); Console.ForegroundColor = ConsoleColor.Yellow; - Console.WriteLine("\n!! Client: Press enter to continue"); + Console.WriteLine("\n!! Client: Sent message 1."); + Console.WriteLine("\n!! Client: Press enter to continue (will send 2&3)"); Console.ResetColor(); - Console.Read(); // Console.ReadKey(); + Console.ReadLine(); // Console.ReadKey(); _server.ReceiveMessageFork("\n!! Client: Hello World 2!"); _server.ReceiveMessageFork("\n!! Client: Hello World 3!"); Console.ForegroundColor = ConsoleColor.Yellow; - Console.WriteLine("\n!! Client: Press enter to end"); + Console.WriteLine("\n!! Client: Press enter to shutdown."); - Console.Read(); // Console.ReadKey(); + Console.ReadLine(); // Console.ReadKey(); Program.finishedTokenQ.Enqueue(0); return true; }