選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 

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