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