/// <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 }); }
/// <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 }); }
/// <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)); }
/// <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)); }
private InstallResult(InstallRequest request, InstallerErrorCode error, string errorMessage) : base(error, errorMessage) { InstallRequest = request; }
private InstallResult(InstallRequest request, IManagedTemplatePackage templatePackage) : base(templatePackage) { InstallRequest = request; }