using System; using System.Collections.Generic; using System.Threading.Tasks; using MQTTnet.Core.Adapter; namespace MQTTnet.Core.Server { public interface IMqttServer { event EventHandler ApplicationMessageReceived; event EventHandler ClientConnected; IList GetConnectedClients(); void InjectClient(string identifier, IMqttCommunicationAdapter adapter); void Publish(MqttApplicationMessage applicationMessage); Task StartAsync(); Task StopAsync(); } }