Beispiel #1
0
 public static XmlFileHistory FromInstrGroup(PatchGroup group)
 {
     return new XmlFileHistory() {
         PatchHistory = group.Instructions.Select(XmlPatchHistory.FromInstruction).ToList(),
         TargetPath = group.TargetPath
     };
 }
Beispiel #2
0
 public static XmlFileHistory FromInstrGroup(PatchGroup group)
 {
     return(new XmlFileHistory()
     {
         PatchHistory = group.Instructions.Select(XmlPatchHistory.FromInstruction).ToList(),
         TargetPath = group.TargetPath
     });
 }
 /// <exception cref="T:PatchworkLauncher.PatchingProcessException">Cannot switch files safely during the patching process</exception>
 public static void TrySwitchFilesSafely(string sourcePath, string destinationPath, string backupPath, PatchGroup patchGroup)
 {
     try
     {
         PatchingHelper.SwitchFilesSafely(sourcePath, destinationPath, backupPath);
     }
     catch (Exception exception)
     {
         throw new PatchingProcessException(exception)
               {
                   AssociatedInstruction = null,
                   AssociatedPatchGroup  = patchGroup,
                   Step = PatchProcessingStep.PerformingSwitch
               };
     }
 }