Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 

33 wiersze
1.3 KiB

  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. }