mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-18 10:26:11 +08:00
Refactor ConnectedClient statistics API
This commit is contained in:
@@ -4,11 +4,11 @@ namespace MQTTnet.Server
|
||||
{
|
||||
public class MqttClientConnectedEventArgs : EventArgs
|
||||
{
|
||||
public MqttClientConnectedEventArgs(ConnectedMqttClient client)
|
||||
public MqttClientConnectedEventArgs(string clientId)
|
||||
{
|
||||
Client = client ?? throw new ArgumentNullException(nameof(client));
|
||||
ClientId = clientId ?? throw new ArgumentNullException(nameof(clientId));
|
||||
}
|
||||
|
||||
public ConnectedMqttClient Client { get; }
|
||||
public string ClientId { get; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user