25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

IManagedMqttClient.cs 873 B

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