public async Task<List<ManagedMqttApplicationMessage>> LoadQueuedMessagesAsync() { var loadedMessages = await _storage.LoadQueuedMessagesAsync().ConfigureAwait(false); _messages.AddRange(loadedMessages); return _messages; }
public async Task LoadQueuedMessagesAsync() { var loadedMessages = await _storage.LoadQueuedMessagesAsync().ConfigureAwait(false); foreach (var loadedMessage in loadedMessages) { _applicationMessages.Add(loadedMessage); } }