Exemplo n.º 1
0
 /// <summary>
 /// Gets the connection.
 /// </summary>
 /// <param name="appId">App ID of the application</param>
 /// <returns></returns>
 internal static LCConnection GetConnection(string appId)
 {
     if (appToConnections.TryGetValue(appId, out LCConnection connection))
     {
         return(connection);
     }
     connection = new LCConnection(appId);
     appToConnections[appId] = connection;
     return(connection);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Removes the connection.
 /// </summary>
 /// <param name="connection">The LCConnection to remove</param>
 internal static void RemoveConnection(LCConnection connection)
 {
     appToConnections.Remove(connection.id);
 }