25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

IMqttServer.cs 576 B

123456789101112131415161718
  1. using System;
  2. using System.Collections.Generic;
  3. using MQTTnet.Core.Adapter;
  4. namespace MQTTnet.Core.Server
  5. {
  6. public interface IMqttServer
  7. {
  8. event EventHandler<MqttApplicationMessageReceivedEventArgs> ApplicationMessageReceived;
  9. event EventHandler<MqttClientConnectedEventArgs> ClientConnected;
  10. IList<ConnectedMqttClient> GetConnectedClients();
  11. void InjectClient(string identifier, IMqttCommunicationAdapter adapter);
  12. void Publish(MqttApplicationMessage applicationMessage);
  13. void Start();
  14. void Stop();
  15. }
  16. }