예제 #1
0
 /// <summary>
 /// Creates failure result for the operation.
 /// </summary>
 /// <param name="request">the processed installation request.</param>
 /// <param name="error">error code, see <see cref="InstallerErrorCode"/> for details.</param>
 /// <param name="localizedFailureMessage">detailed error message.</param>
 /// <returns></returns>
 public static InstallResult CreateFailure(InstallRequest request, InstallerErrorCode error, string localizedFailureMessage)
 {
     return(new InstallResult()
     {
         InstallRequest = request,
         Error = error,
         ErrorMessage = localizedFailureMessage
     });
 }
예제 #2
0
 /// <summary>
 /// Creates successful result for the operation.
 /// </summary>
 /// <param name="request">the processed installation request.</param>
 /// <param name="templatePackage">the installed <see cref="IManagedTemplatePackage"/>.</param>
 /// <returns></returns>
 public static InstallResult CreateSuccess(InstallRequest request, IManagedTemplatePackage templatePackage)
 {
     return(new InstallResult()
     {
         InstallRequest = request,
         Error = InstallerErrorCode.Success,
         TemplatePackage = templatePackage
     });
 }
예제 #3
0
 /// <summary>
 /// Creates failure result for the operation.
 /// </summary>
 /// <param name="request">the processed installation request.</param>
 /// <param name="error">error code, see <see cref="InstallerErrorCode"/> for details.</param>
 /// <param name="localizedFailureMessage">detailed error message.</param>
 /// <returns></returns>
 public static InstallResult CreateFailure(InstallRequest request, InstallerErrorCode error, string localizedFailureMessage)
 {
     return(new InstallResult(request, error, localizedFailureMessage));
 }
예제 #4
0
 /// <summary>
 /// Creates successful result for the operation.
 /// </summary>
 /// <param name="request">the processed installation request.</param>
 /// <param name="templatePackage">the installed <see cref="IManagedTemplatePackage"/>.</param>
 /// <returns></returns>
 public static InstallResult CreateSuccess(InstallRequest request, IManagedTemplatePackage templatePackage)
 {
     return(new InstallResult(request, templatePackage));
 }
예제 #5
0
 private InstallResult(InstallRequest request, InstallerErrorCode error, string errorMessage)
     : base(error, errorMessage)
 {
     InstallRequest = request;
 }
예제 #6
0
 private InstallResult(InstallRequest request, IManagedTemplatePackage templatePackage)
     : base(templatePackage)
 {
     InstallRequest = request;
 }