Example #1
0
        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));
        }
Example #2
0
 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));
 }
Example #3
0
 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));
 }
Example #5
0
 public MqttClientDisconnectedEventArgs(ConnectedMqttClient client, bool wasCleanDisconnect)
 {
     Client             = client ?? throw new ArgumentNullException(nameof(client));
     WasCleanDisconnect = wasCleanDisconnect;
 }