25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

IMqttChannelAdapter.cs 618 B

12345678910111213141516171819202122
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Threading;
  4. using System.Threading.Tasks;
  5. using MQTTnet.Packets;
  6. using MQTTnet.Serializer;
  7. namespace MQTTnet.Adapter
  8. {
  9. public interface IMqttChannelAdapter
  10. {
  11. IMqttPacketSerializer PacketSerializer { get; }
  12. Task ConnectAsync(TimeSpan timeout);
  13. Task DisconnectAsync(TimeSpan timeout);
  14. Task SendPacketsAsync(TimeSpan timeout, CancellationToken cancellationToken, IEnumerable<MqttBasePacket> packets);
  15. Task<MqttBasePacket> ReceivePacketAsync(TimeSpan timeout, CancellationToken cancellationToken);
  16. }
  17. }