public void Rollback() { for (int i = Operations.Count - 1; i >= 0; i--) { Swal.low(() => Operations[i].Revert()); } }
void ICleanupUtilities.Cleanup(Guid projectGuid) { foreach (var directory in Directory.GetDirectories(BaseDirectory, "CodeElements.UpdateSystem.Backup*")) { Swal.low(() => Directory.Delete(directory, true)); } }
void ICleanupUtilities.NoUpdatesFoundCleanup(Guid projectGuid) { //cleanup temp directory var tempDirectory = new DirectoryInfo(Path.Combine(Path.GetTempPath(), $"CodeElements.UpdateSystem.{projectGuid:D}")); if (tempDirectory.Exists) { Swal.low(() => tempDirectory.Delete(true)); } }