mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-19 11:03:07 +08:00
Refactor subscribe and unsubscribe to support MQTTv5.
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
using MQTTnet.Exceptions;
|
||||
|
||||
namespace MQTTnet.Internal
|
||||
{
|
||||
public static class ExceptionHelper
|
||||
{
|
||||
public static void ThrowGracefulSocketClose()
|
||||
{
|
||||
throw new MqttCommunicationClosedGracefullyException();
|
||||
}
|
||||
|
||||
public static void ThrowIfGracefulSocketClose(int readBytesCount)
|
||||
{
|
||||
if (readBytesCount <= 0)
|
||||
{
|
||||
throw new MqttCommunicationClosedGracefullyException();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user