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