Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

IMqttServer.cs 969 B

7 anni fa
1234567891011121314151617181920212223242526
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Threading.Tasks;
  4. namespace MQTTnet.Server
  5. {
  6. public interface IMqttServer : IApplicationMessageReceiver, IApplicationMessagePublisher
  7. {
  8. event EventHandler<MqttServerStartedEventArgs> Started;
  9. event EventHandler<MqttClientConnectedEventArgs> ClientConnected;
  10. event EventHandler<MqttClientDisconnectedEventArgs> ClientDisconnected;
  11. event EventHandler<MqttClientSubscribedTopicEventArgs> ClientSubscribedTopic;
  12. event EventHandler<MqttClientUnsubscribedTopicEventArgs> ClientUnsubscribedTopic;
  13. IMqttServerOptions Options { get; }
  14. Task<IList<ConnectedMqttClient>> GetConnectedClientsAsync();
  15. Task SubscribeAsync(string clientId, IList<TopicFilter> topicFilters);
  16. Task UnsubscribeAsync(string clientId, IList<string> topicFilters);
  17. Task StartAsync(IMqttServerOptions options);
  18. Task StopAsync();
  19. }
  20. }