Exemple #1
0
        public async Task<List<ManagedMqttApplicationMessage>> LoadQueuedMessagesAsync()
        {
            var loadedMessages = await _storage.LoadQueuedMessagesAsync().ConfigureAwait(false);
            _messages.AddRange(loadedMessages);

            return _messages;
        }
Exemple #2
0
        public async Task LoadQueuedMessagesAsync()
        {
            var loadedMessages = await _storage.LoadQueuedMessagesAsync().ConfigureAwait(false);

            foreach (var loadedMessage in loadedMessages)
            {
                _applicationMessages.Add(loadedMessage);
            }
        }