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.
 
 
 
 

17 rindas
549 B

  1. using System;
  2. using System.Threading.Tasks;
  3. namespace MQTTnet
  4. {
  5. public static class ApplicationMessagePublisherExtensions
  6. {
  7. public static Task PublishAsync(this IApplicationMessagePublisher client, params MqttApplicationMessage[] applicationMessages)
  8. {
  9. if (client == null) throw new ArgumentNullException(nameof(client));
  10. if (applicationMessages == null) throw new ArgumentNullException(nameof(applicationMessages));
  11. return client.PublishAsync(applicationMessages);
  12. }
  13. }
  14. }