You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ApplicationMessagePublisherExtensions.cs 554 B

12345678910111213141516
  1. using System;
  2. using System.Threading.Tasks;
  3. namespace MQTTnet.Core
  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. }