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