Esempio n. 1
0
 public static Task ProcessUpdateLastOnlineQueue(Service service)
 {
     return(Task.Factory.StartNew(() =>
     {
         lock (UpdateLastOnlineQueue)
         {
             foreach (var updateLastOnlineTuple in
                      UpdateLastOnlineQueue.Where(x => x.Item1.Service == service).ToList())
             {
                 UpdateLastOnline(updateLastOnlineTuple.Item1, updateLastOnlineTuple.Item2, true);
                 UpdateLastOnlineQueue.Remove(updateLastOnlineTuple);
             }
         }
     }));
 }
Esempio n. 2
0
 public static Task ProcessUpdateLastOnlineQueue(Service service)
 {
     return(Task.Factory.StartNew(() =>
     {
         lock (UpdateLastOnlineQueue)
         {
             Utils.DebugPrint(">>>>>>>>>>>>>> Processing all last online times...");
             foreach (var updateLastOnlineTuple in
                      UpdateLastOnlineQueue.Where(x => x.Item1.Service == service).ToList())
             {
                 Utils.DebugPrint(">>>>>>>>>>>>>> Processing last online time (from stash) for service: " + service.Information.ServiceName);
                 UpdateLastOnline(updateLastOnlineTuple.Item1, updateLastOnlineTuple.Item2, true);
                 UpdateLastOnlineQueue.Remove(updateLastOnlineTuple);
             }
         }
     }));
 }