internal void OnClientDisconnected(ConnectedMqttClient client) { if (client == null) { throw new ArgumentNullException(nameof(client)); } _logger.Info <MqttServer>("Client '{0}': Disconnected.", client.ClientId); ClientDisconnected?.Invoke(this, new MqttClientDisconnectedEventArgs(client)); }
private void OnClientDisconnected(ConnectedMqttClient client, bool wasCleanDisconnect) { _logger.Info <MqttServer>("Client '{0}': Disconnected (clean={1}).", client.ClientId, wasCleanDisconnect); ClientDisconnected?.Invoke(this, new MqttClientDisconnectedEventArgs(client, wasCleanDisconnect)); }
private void OnClientConnected(ConnectedMqttClient client) { _logger.Info <MqttServer>("Client '{0}': Connected.", client.ClientId); ClientConnected?.Invoke(this, new MqttClientConnectedEventArgs(client)); }
public MqttClientConnectedEventArgs(ConnectedMqttClient client) { Client = client ?? throw new ArgumentNullException(nameof(client)); }
public MqttClientDisconnectedEventArgs(ConnectedMqttClient client, bool wasCleanDisconnect) { Client = client ?? throw new ArgumentNullException(nameof(client)); WasCleanDisconnect = wasCleanDisconnect; }