mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-16 09:13:02 +08:00
21 lines
678 B
C#
21 lines
678 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using MQTTnet.Core.Adapter;
|
|
|
|
namespace MQTTnet.Core.Server
|
|
{
|
|
public interface IMqttServer
|
|
{
|
|
event EventHandler<MqttApplicationMessageReceivedEventArgs> ApplicationMessageReceived;
|
|
event EventHandler<MqttClientConnectedEventArgs> ClientConnected;
|
|
event EventHandler<MqttClientDisconnectedEventArgs> ClientDisconnected;
|
|
|
|
IList<ConnectedMqttClient> GetConnectedClients();
|
|
void InjectClient(IMqttCommunicationAdapter adapter);
|
|
void Publish(MqttApplicationMessage applicationMessage);
|
|
|
|
Task StartAsync();
|
|
Task StopAsync();
|
|
}
|
|
} |