Refactor ConnectedClient statistics API

This commit is contained in:
Christian
2018-05-16 00:08:42 +02:00
parent 719838de3b
commit fbf1cbc76e
24 changed files with 306 additions and 350 deletions
@@ -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; }
}
}