Esempio n. 1
0
 public void Results2Async()
 {
     AsyncManager.OutstandingOperations.Increment();
     string host = Util.Host;
     ThreadPool.QueueUserWorkItem((e) =>
     {
         var Db = new CMSDataContext(Util.GetConnectionString(host));
         Db.DeleteQueryBitTags();
         foreach (var a in Db.StatusFlags())
         {
             var t = Db.FetchOrCreateSystemTag(a[0]);
             Db.TagAll(Db.PeopleQuery(a[0] + ":" + a[1]), t);
             Db.SubmitChanges();
         }
         AsyncManager.OutstandingOperations.Decrement();
     });
 }