зеркало из https://github.com/microsoft/AMBROSIA.git
hello world: Switch to ReadLine
This commit is contained in:
Родитель
ce3394f8ac
Коммит
b5042fa862
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче