From ea22ef4164916381c5bec554530725b52724002c Mon Sep 17 00:00:00 2001 From: SeppPenner Date: Mon, 30 Mar 2020 19:44:15 +0200 Subject: [PATCH] Adjusted .nuspec file, added property to interface as well. --- Build/MQTTnet.nuspec | 3 ++- Source/MQTTnet/Server/IMqttServer.cs | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Build/MQTTnet.nuspec b/Build/MQTTnet.nuspec index a6e7faf..10c7280 100644 --- a/Build/MQTTnet.nuspec +++ b/Build/MQTTnet.nuspec @@ -22,8 +22,9 @@ * [Server] Added interceptor for unsubscriptions. * [MQTTnet.Server] Added interceptor for unsubscriptions. * [MQTTnet.AspNetCore] improved compatibility with AspNetCore 3.1 +* [MQTTnet.Server] Added option to check whether the server is already started properly or not. - Copyright Christian Kratky 2016-2019 + Copyright Christian Kratky 2016-2020 MQTT Message Queue Telemetry Transport MQTTClient MQTTServer Server MQTTBroker Broker NETStandard IoT InternetOfThings Messaging Hardware Arduino Sensor Actuator M2M ESP Smart Home Cities Automation Xamarin diff --git a/Source/MQTTnet/Server/IMqttServer.cs b/Source/MQTTnet/Server/IMqttServer.cs index c080f4e..41c6dc0 100644 --- a/Source/MQTTnet/Server/IMqttServer.cs +++ b/Source/MQTTnet/Server/IMqttServer.cs @@ -27,5 +27,7 @@ namespace MQTTnet.Server Task StartAsync(IMqttServerOptions options); Task StopAsync(); + + bool IsStarted { get; } } } \ No newline at end of file