|
|
@@ -20,6 +20,7 @@ namespace MQTTnet.TestApp.NetCore |
|
|
|
Console.WriteLine("3 = Start performance test"); |
|
|
|
Console.WriteLine("4 = Start managed client"); |
|
|
|
Console.WriteLine("5 = Start public broker test"); |
|
|
|
Console.WriteLine("6 = Start server & client"); |
|
|
|
|
|
|
|
var pressedKey = Console.ReadKey(true); |
|
|
|
if (pressedKey.KeyChar == '1') |
|
|
@@ -42,6 +43,10 @@ namespace MQTTnet.TestApp.NetCore |
|
|
|
{ |
|
|
|
Task.Run(PublicBrokerTest.RunAsync); |
|
|
|
} |
|
|
|
else if (pressedKey.KeyChar == '6') |
|
|
|
{ |
|
|
|
Task.Run(ServerAndClientTest.RunAsync); |
|
|
|
} |
|
|
|
|
|
|
|
Thread.Sleep(Timeout.Infinite); |
|
|
|
} |
|
|
|