Move managed client to separate nuget.

This commit is contained in:
Christian Kratky
2018-06-06 21:27:39 +02:00
parent fd1880f1ff
commit b05cb0d2ea
19 changed files with 156 additions and 31 deletions
@@ -0,0 +1,19 @@
using System;
namespace MQTTnet.Extensions.ManagedClient
{
public class ApplicationMessageProcessedEventArgs : EventArgs
{
public ApplicationMessageProcessedEventArgs(MqttApplicationMessage applicationMessage, Exception exception)
{
ApplicationMessage = applicationMessage ?? throw new ArgumentNullException(nameof(applicationMessage));
Exception = exception;
}
public MqttApplicationMessage ApplicationMessage { get; }
public Exception Exception { get; }
public bool HasFailed => Exception != null;
public bool HasSucceeded => Exception == null;
}
}