mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-25 07:41:32 +08:00
30 lines
915 B
C#
30 lines
915 B
C#
// Licensed to the .NET Foundation under one or more agreements.
|
|
// The .NET Foundation licenses this file to you under the MIT license.
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
using System;
|
|
|
|
namespace MQTTnet.Client
|
|
{
|
|
public sealed class MqttClientDisconnectedEventArgs : EventArgs
|
|
{
|
|
public bool ClientWasConnected { get; internal set; }
|
|
|
|
public Exception Exception { get; internal set; }
|
|
|
|
/// <summary>
|
|
/// Gets the authentication result.
|
|
/// Hint: MQTT 5 feature only.
|
|
/// </summary>
|
|
public MqttClientConnectResult ConnectResult { get; internal set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the reason.
|
|
/// Hint: MQTT 5 feature only.
|
|
/// </summary>
|
|
public MqttClientDisconnectReason Reason { get; internal set; }
|
|
|
|
public string ReasonString { get; internal set; }
|
|
}
|
|
}
|