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