public void Rollback()
 {
     for (int i = Operations.Count - 1; i >= 0; i--)
     {
         Swal.low(() => Operations[i].Revert());
     }
 }
Beispiel #2
0
 void ICleanupUtilities.Cleanup(Guid projectGuid)
 {
     foreach (var directory in Directory.GetDirectories(BaseDirectory,
                                                        "CodeElements.UpdateSystem.Backup*"))
     {
         Swal.low(() => Directory.Delete(directory, true));
     }
 }
Beispiel #3
0
        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));
            }
        }