Refactoring

This commit is contained in:
Christian Kratky
2017-10-25 23:11:42 +02:00
parent 8fa91736b6
commit 418f2b2c3f
10 changed files with 40 additions and 36 deletions
+2 -4
View File
@@ -1,18 +1,16 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using MQTTnet.Core.Client;
namespace MQTTnet.Core.Server
{
public interface IMqttServer
public interface IMqttServer : IApplicationMessageReceiver, IApplicationMessagePublisher
{
event EventHandler<MqttClientConnectedEventArgs> ClientConnected;
event EventHandler<MqttClientDisconnectedEventArgs> ClientDisconnected;
event EventHandler<MqttApplicationMessageReceivedEventArgs> ApplicationMessageReceived;
IList<ConnectedMqttClient> GetConnectedClients();
void Publish(MqttApplicationMessage applicationMessage);
Task StartAsync();
Task StopAsync();