コード例 #1
0
ファイル: XmlFileHistory.cs プロジェクト: GregRos/Patchwork
 public static XmlFileHistory FromInstrGroup(PatchGroup group)
 {
     return new XmlFileHistory() {
         PatchHistory = group.Instructions.Select(XmlPatchHistory.FromInstruction).ToList(),
         TargetPath = group.TargetPath
     };
 }
コード例 #2
0
 public static XmlFileHistory FromInstrGroup(PatchGroup group)
 {
     return(new XmlFileHistory()
     {
         PatchHistory = group.Instructions.Select(XmlPatchHistory.FromInstruction).ToList(),
         TargetPath = group.TargetPath
     });
 }
コード例 #3
0
 /// <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
               };
     }
 }