internal static void RemoveMemory(Connection objectValue)
 {
     if (DicConnection.ContainsKey(objectValue.Id))
     {
         DicConnection.Remove(objectValue.Id);
     }
 }
 public static bool IsExistConnection(int id)
 {
     if (DicConnection.ContainsKey(id))
     {
         return(true);
     }
     return(false);
 }
 public static Connection GetConnection(int id)
 {
     if (DicConnection.ContainsKey(id))
     {
         return(DicConnection[id].Clone() as Connection);
     }
     LogTo.Error("Not get Connection by id = " + id);
     return(null);
 }