Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

IMqttServer.cs 969 B

há 7 anos
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. }