Преглед на файлове

Refactoring and doc updates.

release/3.x.x
Christian Kratky преди 5 години
родител
ревизия
b175119008
променени са 3 файла, в които са добавени 13 реда и са изтрити 11 реда
  1. +2
    -0
      Build/MQTTnet.nuspec
  2. +3
    -3
      Source/MQTTnet.Extensions.ManagedClient/ManagedMqttClient.cs
  3. +8
    -8
      Source/MQTTnet/Client/MqttClient.cs

+ 2
- 0
Build/MQTTnet.nuspec Целия файл

@@ -11,6 +11,8 @@
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>MQTTnet is a high performance .NET library for MQTT based communication. It provides a MQTT client and a MQTT server (broker) and supports v3.1.0, v3.1.1 and v5.0.0 of the MQTT protocol.</description>
<releaseNotes>
* [Client] Improve connection stability (thanks to @jltjohanlindqvist).
* [ManagedClient] Fixed a memory leak (thanks to @zawodskoj).
* [Server] Added support for assigned client IDs (MQTTv5 only) (thanks to @bcrosnier).
</releaseNotes>
<copyright>Copyright Christian Kratky 2016-2019</copyright>


+ 3
- 3
Source/MQTTnet.Extensions.ManagedClient/ManagedMqttClient.cs Целия файл

@@ -279,7 +279,7 @@ namespace MQTTnet.Extensions.ManagedClient
}
catch (Exception exception)
{
_logger.Error(exception, "Unhandled exception while maintaining connection.");
_logger.Error(exception, "Error exception while maintaining connection.");
}
finally
{
@@ -328,11 +328,11 @@ namespace MQTTnet.Extensions.ManagedClient
}
catch (MqttCommunicationException exception)
{
_logger.Warning(exception, "Communication exception while maintaining connection.");
_logger.Warning(exception, "Communication error while maintaining connection.");
}
catch (Exception exception)
{
_logger.Error(exception, "Unhandled exception while maintaining connection.");
_logger.Error(exception, "Error exception while maintaining connection.");
}
}



+ 8
- 8
Source/MQTTnet/Client/MqttClient.cs Целия файл

@@ -284,7 +284,7 @@ namespace MQTTnet.Client
}
catch (Exception e)
{
_logger.Warning(e, "Error while waiting for tasks.");
_logger.Warning(e, "Error while waiting for internal tasks.");
}
finally
{
@@ -412,11 +412,11 @@ namespace MQTTnet.Client
}
else if (exception is MqttCommunicationException)
{
_logger.Warning(exception, "MQTT communication exception while sending/receiving keep alive packets.");
_logger.Warning(exception, "Communication error while sending/receiving keep alive packets.");
}
else
{
_logger.Error(exception, "Unhandled exception while sending/receiving keep alive packets.");
_logger.Error(exception, "Error exception while sending/receiving keep alive packets.");
}

if (!DisconnectIsPending())
@@ -470,11 +470,11 @@ namespace MQTTnet.Client
}
else if (exception is MqttCommunicationException)
{
_logger.Warning(exception, "MQTT communication exception while receiving packets.");
_logger.Warning(exception, "Communication error while receiving packets.");
}
else
{
_logger.Error(exception, "Unhandled exception while receiving packets.");
_logger.Error(exception, "Error while receiving packets.");
}

_packetDispatcher.Dispatch(exception);
@@ -542,11 +542,11 @@ namespace MQTTnet.Client
}
else if (exception is MqttCommunicationException)
{
_logger.Warning(exception, "MQTT communication exception while receiving packets.");
_logger.Warning(exception, "Communication error while receiving packets.");
}
else
{
_logger.Error(exception, "Unhandled exception while receiving packets.");
_logger.Error(exception, "Error while receiving packets.");
}

_packetDispatcher.Dispatch(exception);
@@ -597,7 +597,7 @@ namespace MQTTnet.Client
}
catch (Exception exception)
{
_logger.Error(exception, "Unhandled exception while handling application message.");
_logger.Error(exception, "Error while handling application message.");
}
}



Зареждане…
Отказ
Запис