Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

12345678910111213141516171819202122232425262728293031
  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. int PendingApplicationMessagesCount { get; }
  12. event EventHandler<MqttClientConnectedEventArgs> Connected;
  13. event EventHandler<MqttClientDisconnectedEventArgs> Disconnected;
  14. event EventHandler<ApplicationMessageProcessedEventArgs> ApplicationMessageProcessed;
  15. event EventHandler<ApplicationMessageSkippedEventArgs> ApplicationMessageSkipped;
  16. event EventHandler<MqttManagedProcessFailedEventArgs> ConnectingFailed;
  17. event EventHandler<MqttManagedProcessFailedEventArgs> SynchronizingSubscriptionsFailed;
  18. Task StartAsync(IManagedMqttClientOptions options);
  19. Task StopAsync();
  20. Task SubscribeAsync(IEnumerable<TopicFilter> topicFilters);
  21. Task UnsubscribeAsync(IEnumerable<string> topics);
  22. Task PublishAsync(ManagedMqttApplicationMessage applicationMessages);
  23. }
  24. }