Merge pull request #286 from JTrotta/master

ManagedClientStorage now works
This commit is contained in:
Christian
2018-05-29 21:15:05 +02:00
committed by GitHub
2 changed files with 7 additions and 4 deletions
@@ -69,6 +69,10 @@ namespace MQTTnet.ManagedClient
{
_storageManager = new ManagedMqttClientStorageManager(_options.Storage);
await _storageManager.LoadQueuedMessagesAsync().ConfigureAwait(false);
foreach (var loadedMessage in _storageManager.ApplicationMessages)
{
_messageQueue.Add(loadedMessage);
}
}
_connectionCancellationToken = new CancellationTokenSource();