瀏覽代碼

restore other app modes

release/3.x.x
JanEggers 7 年之前
父節點
當前提交
de0dfb9265
共有 1 個檔案被更改,包括 12 行新增12 行删除
  1. +12
    -12
      Tests/MQTTnet.TestApp.NetFramework/Program.cs

+ 12
- 12
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);


Loading…
取消
儲存