/// <summary>
 /// Repairs a corrupted image that has been identified as repairable by the CheckImageHealth Function.
 /// </summary>
 /// <param name="session">A valid DISM Session. The DISM Session must be associated with an image. You can associate a session with an image by using the DismOpenSession Function.</param>
 /// <param name="limitAccess">Specifies whether the RestoreImageHealth method should contact Windows Update (WU) as a source location for downloading repair files. Before checking WU, DISM will check for the files in the sourcePaths provided and in any locations specified in the registry by Group Policy. If the files that are required to enable the feature are found in these other specified locations, this flag is ignored.</param>
 /// <param name="sourcePaths">List of source locations to check for repair files.</param>
 /// <exception cref="DismException">When a failure occurs.</exception>
 /// <exception cref="DismRebootRequiredException">When the operation requires a reboot to complete.</exception>
 public static void RestoreImageHealth(DismSession session, bool limitAccess, List <string> sourcePaths)
 {
     DismApi.RestoreImageHealth(session, limitAccess, sourcePaths, null);
 }
 /// <summary>
 /// Repairs a corrupted image that has been identified as repairable by the CheckImageHealth Function.
 /// </summary>
 /// <param name="session">A valid DISM Session. The DISM Session must be associated with an image. You can associate a session with an image by using the DismOpenSession Function.</param>
 /// <param name="limitAccess">Specifies whether the RestoreImageHealth method should contact Windows Update (WU) as a source location for downloading repair files. Before checking WU, DISM will check for the files in the sourcePaths provided and in any locations specified in the registry by Group Policy. If the files that are required to enable the feature are found in these other specified locations, this flag is ignored.</param>
 /// <param name="sourcePaths">List of source locations to check for repair files.</param>
 /// <param name="progressCallback">A progress callback method to invoke when progress is made.</param>
 /// <exception cref="DismException">When a failure occurs.</exception>
 /// <exception cref="OperationCanceledException">When the user requested the operation be canceled.</exception>
 /// <exception cref="DismRebootRequiredException">When the operation requires a reboot to complete.</exception>
 public static void RestoreImageHealth(DismSession session, bool limitAccess, List <string> sourcePaths, Dism.DismProgressCallback progressCallback)
 {
     DismApi.RestoreImageHealth(session, limitAccess, sourcePaths, progressCallback, null);
 }
 /// <summary>
 /// Repairs a corrupted image that has been identified as repairable by the CheckImageHealth Function.
 /// </summary>
 /// <param name="session">A valid DISM Session. The DISM Session must be associated with an image. You can associate a session with an image by using the DismOpenSession Function.</param>
 /// <param name="limitAccess">Specifies whether the RestoreImageHealth method should contact Windows Update (WU) as a source location for downloading repair files. Before checking WU, DISM will check for the files in the sourcePaths provided and in any locations specified in the registry by Group Policy. If the files that are required to enable the feature are found in these other specified locations, this flag is ignored.</param>
 /// <exception cref="DismException">When a failure occurs.</exception>
 /// <exception cref="DismRebootRequiredException">When the operation requires a reboot to complete.</exception>
 public static void RestoreImageHealth(DismSession session, bool limitAccess)
 {
     DismApi.RestoreImageHealth(session, limitAccess, null);
 }