public static bool TryRemoveClientConnection(string clientId, out MqttClientConnection clientConnection) { return(AllConnectedClients.TryRemove(clientId, out clientConnection)); }
public static bool TryAddClientConnection(string clientId, MqttClientConnection clientConnection) { return(AllConnectedClients.TryAdd(clientId, clientConnection)); }