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.

IManagedMqttClient.cs 1.3 KiB

пре 6 година
123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Threading.Tasks;
  4. using MQTTnet.Client.Connecting;
  5. using MQTTnet.Client.Disconnecting;
  6. namespace MQTTnet.Extensions.ManagedClient
  7. {
  8. public interface IManagedMqttClient : IApplicationMessageReceiver, IApplicationMessagePublisher, IDisposable
  9. {
  10. bool IsStarted { get; }
  11. bool IsConnected { get; }
  12. int PendingApplicationMessagesCount { get; }
  13. IManagedMqttClientOptions Options { get; }
  14. IMqttClientConnectedHandler ConnectedHandler { get; set; }
  15. IMqttClientDisconnectedHandler DisconnectedHandler { get; set; }
  16. IApplicationMessageProcessedHandler ApplicationMessageProcessedHandler { get; set; }
  17. IApplicationMessageSkippedHandler ApplicationMessageSkippedHandler { get; set; }
  18. IConnectingFailedHandler ConnectingFailedHandler { get; set; }
  19. ISynchronizingSubscriptionsFailedHandler SynchronizingSubscriptionsFailedHandler { get; set; }
  20. Task StartAsync(IManagedMqttClientOptions options);
  21. Task StopAsync();
  22. Task SubscribeAsync(IEnumerable<TopicFilter> topicFilters);
  23. Task UnsubscribeAsync(IEnumerable<string> topics);
  24. Task PublishAsync(ManagedMqttApplicationMessage applicationMessages);
  25. }
  26. }