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 549 B

пре 7 година
пре 7 година
12345678910111213141516
  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. }