Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 

24 rindas
693 B

  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. }