Пример #1
0
        private async Task EnqueueSubscribedRetainedMessagesAsync(MqttSubscribePacket subscribePacket)
        {
            var retainedMessages = await _clientRetainedMessageManager.GetSubscribedMessagesAsync(subscribePacket).ConfigureAwait(false);

            foreach (var publishPacket in retainedMessages)
            {
                EnqueuePublishPacket(publishPacket.ToPublishPacket());
            }
        }
Пример #2
0
 public Task <List <MqttApplicationMessage> > GetRetainedMessagesAsync(MqttSubscribePacket subscribePacket)
 {
     return(_clientRetainedMessageManager.GetSubscribedMessagesAsync(subscribePacket));
 }