25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

IManagedMqttClient.cs 664 B

123456789101112131415161718192021
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Threading.Tasks;
  4. using MQTTnet.Core.Client;
  5. namespace MQTTnet.Core.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<TopicFilter> topicFilters);
  16. }
  17. }