mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-21 12:16:02 +08:00
restore other app modes
This commit is contained in:
@@ -20,18 +20,18 @@ namespace MQTTnet.TestApp.NetFramework
|
|||||||
Console.WriteLine("1 = Start client");
|
Console.WriteLine("1 = Start client");
|
||||||
Console.WriteLine("2 = Start server");
|
Console.WriteLine("2 = Start server");
|
||||||
Console.WriteLine("3 = Start performance test");
|
Console.WriteLine("3 = Start performance test");
|
||||||
//var pressedKey = Console.ReadKey(true);
|
var pressedKey = Console.ReadKey(true);
|
||||||
//if (pressedKey.Key == ConsoleKey.D1)
|
if (pressedKey.Key == ConsoleKey.D1)
|
||||||
//{
|
{
|
||||||
// Task.Run(() => RunClientAsync(args));
|
Task.Run(() => RunClientAsync(args));
|
||||||
// Thread.Sleep(Timeout.Infinite);
|
Thread.Sleep(Timeout.Infinite);
|
||||||
//}
|
}
|
||||||
//else if (pressedKey.Key == ConsoleKey.D2)
|
else if (pressedKey.Key == ConsoleKey.D2)
|
||||||
//{
|
{
|
||||||
// Task.Run(() => RunServerAsync(args));
|
Task.Run(() => RunServerAsync(args));
|
||||||
// Thread.Sleep(Timeout.Infinite);
|
Thread.Sleep(Timeout.Infinite);
|
||||||
//}
|
}
|
||||||
//else if (pressedKey.Key == ConsoleKey.D3)
|
else if (pressedKey.Key == ConsoleKey.D3)
|
||||||
{
|
{
|
||||||
Task.Run(() => PerformanceTest.RunAsync());
|
Task.Run(() => PerformanceTest.RunAsync());
|
||||||
Thread.Sleep(Timeout.Infinite);
|
Thread.Sleep(Timeout.Infinite);
|
||||||
|
|||||||
Reference in New Issue
Block a user