Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

IManagedMqttClient.cs 1.3 KiB

pirms 6 gadiem
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. }