mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-17 01:33:03 +08:00
19 lines
549 B
C#
19 lines
549 B
C#
using System;
|
|
|
|
namespace MQTTnet.Server
|
|
{
|
|
public class MqttServerClientConnectedEventArgs : EventArgs
|
|
{
|
|
public MqttServerClientConnectedEventArgs(string clientId)
|
|
{
|
|
ClientId = clientId ?? throw new ArgumentNullException(nameof(clientId));
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the client identifier.
|
|
/// Hint: This identifier needs to be unique over all used clients / devices on the broker to avoid connection issues.
|
|
/// </summary>
|
|
public string ClientId { get; }
|
|
}
|
|
}
|