mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-18 18:43:10 +08:00
Migrate to Stream-less approach.
This commit is contained in:
@@ -59,7 +59,7 @@ namespace MQTTnet.TestApp.NetCore
|
||||
var sentMessagesCount = 0;
|
||||
while (stopwatch.ElapsedMilliseconds < 1000)
|
||||
{
|
||||
await client.PublishAsync(messages).ConfigureAwait(false);
|
||||
client.PublishAsync(messages).GetAwaiter().GetResult();
|
||||
sentMessagesCount++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user