コード例 #1
0
 private void AppendRecord(string serverIdentifier, StatisticsRecord record)
 {
     try
     {
         List <StatisticsRecord> records;
         lock (RawStatistics)
         {
             if (!RawStatistics.TryGetValue(serverIdentifier, out records))
             {
                 records = new List <StatisticsRecord>();
                 RawStatistics[serverIdentifier] = records;
             }
         }
         records.Add(record);
     }
     catch (Exception e)
     {
         Logging.LogUsefulException(e);
     }
 }