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.

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