From de0dfb926567a87c4ecf828d6576d376461ac2a0 Mon Sep 17 00:00:00 2001 From: JanEggers Date: Sun, 10 Sep 2017 22:40:30 +0200 Subject: [PATCH] restore other app modes --- Tests/MQTTnet.TestApp.NetFramework/Program.cs | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Tests/MQTTnet.TestApp.NetFramework/Program.cs b/Tests/MQTTnet.TestApp.NetFramework/Program.cs index 1111653..d27f423 100644 --- a/Tests/MQTTnet.TestApp.NetFramework/Program.cs +++ b/Tests/MQTTnet.TestApp.NetFramework/Program.cs @@ -20,18 +20,18 @@ namespace MQTTnet.TestApp.NetFramework Console.WriteLine("1 = Start client"); Console.WriteLine("2 = Start server"); Console.WriteLine("3 = Start performance test"); - //var pressedKey = Console.ReadKey(true); - //if (pressedKey.Key == ConsoleKey.D1) - //{ - // Task.Run(() => RunClientAsync(args)); - // Thread.Sleep(Timeout.Infinite); - //} - //else if (pressedKey.Key == ConsoleKey.D2) - //{ - // Task.Run(() => RunServerAsync(args)); - // Thread.Sleep(Timeout.Infinite); - //} - //else if (pressedKey.Key == ConsoleKey.D3) + var pressedKey = Console.ReadKey(true); + if (pressedKey.Key == ConsoleKey.D1) + { + Task.Run(() => RunClientAsync(args)); + Thread.Sleep(Timeout.Infinite); + } + else if (pressedKey.Key == ConsoleKey.D2) + { + Task.Run(() => RunServerAsync(args)); + Thread.Sleep(Timeout.Infinite); + } + else if (pressedKey.Key == ConsoleKey.D3) { Task.Run(() => PerformanceTest.RunAsync()); Thread.Sleep(Timeout.Infinite);