예제 #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));
        }
예제 #2
0
파일: MqttServer.cs 프로젝트: xzoth/MQTTnet
 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));
 }
예제 #3
0
파일: MqttServer.cs 프로젝트: xzoth/MQTTnet
 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));
 }
예제 #5
0
 public MqttClientDisconnectedEventArgs(ConnectedMqttClient client, bool wasCleanDisconnect)
 {
     Client             = client ?? throw new ArgumentNullException(nameof(client));
     WasCleanDisconnect = wasCleanDisconnect;
 }