Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

IMqttChannelAdapter.cs 748 B

123456789101112131415161718192021222324
  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 : IDisposable
  10. {
  11. string Endpoint { get; }
  12. IMqttPacketSerializer PacketSerializer { get; }
  13. Task ConnectAsync(TimeSpan timeout, CancellationToken cancellationToken);
  14. Task DisconnectAsync(TimeSpan timeout, CancellationToken cancellationToken);
  15. Task SendPacketsAsync(TimeSpan timeout, IEnumerable<MqttBasePacket> packets, CancellationToken cancellationToken);
  16. Task<MqttBasePacket> ReceivePacketAsync(TimeSpan timeout, CancellationToken cancellationToken);
  17. }
  18. }