mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-15 17:00:03 +08:00
18 lines
466 B
C#
18 lines
466 B
C#
using System;
|
|
|
|
namespace MQTTnet.Server
|
|
{
|
|
public class MqttClientDisconnectedEventArgs : EventArgs
|
|
{
|
|
public MqttClientDisconnectedEventArgs(string clientId, bool wasCleanDisconnect)
|
|
{
|
|
ClientId = clientId ?? throw new ArgumentNullException(nameof(clientId));
|
|
WasCleanDisconnect = wasCleanDisconnect;
|
|
}
|
|
|
|
public string ClientId { get; }
|
|
|
|
public bool WasCleanDisconnect { get; }
|
|
}
|
|
}
|