Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 

21 rader
643 B

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Threading.Tasks;
  4. using MQTTnet.Client;
  5. namespace MQTTnet.ManagedClient
  6. {
  7. public interface IManagedMqttClient : IApplicationMessageReceiver, IApplicationMessagePublisher
  8. {
  9. bool IsConnected { get; }
  10. event EventHandler<MqttClientConnectedEventArgs> Connected;
  11. event EventHandler<MqttClientDisconnectedEventArgs> Disconnected;
  12. Task StartAsync(IManagedMqttClientOptions options);
  13. Task StopAsync();
  14. Task SubscribeAsync(IEnumerable<TopicFilter> topicFilters);
  15. Task UnsubscribeAsync(IEnumerable<string> topics);
  16. }
  17. }