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

IMqttCommunicationAdapter.cs 693 B

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