Пример #1
0
 private void CleanDeadClients(HPTime lastDeadClientTimeCheck)
 {
     try
     {
         lock (this)
         {
             List <string> deadClients = new List <string>();
             foreach (KeyValuePair <string, ClientNotificationMgr> kvp in _clients)
             {
                 ClientNotificationMgr client = kvp.Value;
                 if (client.LastPollTime.CompareTo(lastDeadClientTimeCheck) < 0)
                 {
                     deadClients.Add(kvp.Key);
                     RemoveClient(kvp.Key);
                 }
             }
         }
     }
     catch (Exception ex)
     {
         NCacheLog.Error("PullBaseNotificationManager.CleanDeadClients()", " Exception: " + ex);
     }
 }