mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-16 09:13:02 +08:00
Add test for simple server and client execution.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user