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.

MqttCommunicationAdapterExtensions.cs 479 B

123456789101112131415
  1. using System;
  2. using System.Threading;
  3. using System.Threading.Tasks;
  4. using MQTTnet.Core.Packets;
  5. namespace MQTTnet.Core.Adapter
  6. {
  7. public static class MqttCommunicationAdapterExtensions
  8. {
  9. public static Task SendPacketsAsync(this IMqttCommunicationAdapter adapter, TimeSpan timeout, CancellationToken cancellationToken, params MqttBasePacket[] packets)
  10. {
  11. return adapter.SendPacketsAsync(timeout, cancellationToken, packets);
  12. }
  13. }
  14. }