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.
 
 
 
 

20 rindas
674 B

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