Add thrown exception for disconnected event

This commit is contained in:
Christian
2018-01-22 20:55:06 +01:00
parent 4d13407a83
commit c060c379d3
2 changed files with 17 additions and 13 deletions
@@ -4,11 +4,14 @@ namespace MQTTnet.Client
{
public class MqttClientDisconnectedEventArgs : EventArgs
{
public MqttClientDisconnectedEventArgs(bool clientWasConnected)
public MqttClientDisconnectedEventArgs(bool clientWasConnected, Exception exception)
{
ClientWasConnected = clientWasConnected;
Exception = exception;
}
public bool ClientWasConnected { get; }
public Exception Exception { get; }
}
}