Refactor graceful socket close.

This commit is contained in:
Christian Kratky
2018-05-31 21:34:51 +02:00
parent 99614f2e15
commit 0505efbac1
3 changed files with 28 additions and 25 deletions
@@ -0,0 +1,12 @@
using MQTTnet.Exceptions;
namespace MQTTnet.Internal
{
public static class ExceptionHelper
{
public static void ThrowGracefulSocketClose()
{
throw new MqttCommunicationException("Connection gracefully closed from the remote party.");
}
}
}