Add support for retained application messages

This commit is contained in:
Christian Kratky
2017-09-30 18:42:41 +02:00
parent 3cce33415d
commit 862f76fea2
24 changed files with 454 additions and 235 deletions
@@ -167,7 +167,7 @@ namespace MQTTnet.TestApp.NetFramework
});
}
private static void RunServerAsync()
private static async Task RunServerAsync()
{
try
{
@@ -201,12 +201,12 @@ namespace MQTTnet.TestApp.NetFramework
stopwatch.Restart();
}
};
mqttServer.Start();
await mqttServer.StartAsync();
Console.WriteLine("Press any key to exit.");
Console.ReadLine();
mqttServer.Stop();
await mqttServer.StopAsync();
}
catch (Exception e)
{