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.
 
 
 
 

26 righe
969 B

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