Пример #1
0
 public void TestClick()
 {
     if (!inProgress)
     {
         Task.Run(
             () =>
         {
             inProgress = true;
             purger     = new Purger();
             purger.Purge();
         });
     }
     else
     {
         inProgress = false;
         purger?.Break();
     }
 }
Пример #2
0
 public void setPurger(Purger purger)
 {
     this.purger = purger;
 }
Пример #3
0
 public async Task PerformPurgeLogs()
 {
     if (Core.ApplicationData.Instance.ActiveDatabase != null)
     {
         Purger p = new Purger();
         await p.PurgeWithDefaultSettings(Core.ApplicationData.Instance.ActiveDatabase);
     }
     Close();
 }