Exemplo n.º 1
0
 /// <summary>
 /// Creates a new instance of the <see cref="ApplyCompleteEventArgs"/> clas.
 /// </summary>
 /// <param name="status">The return code of the operation.</param>
 /// <param name="restart">Whether a restart is required.</param>
 public ApplyCompleteEventArgs(int status, ApplyRestart restart)
     : base(status)
 {
     this.restart = restart;
 }
Exemplo n.º 2
0
        Result IBootstrapperApplication.OnExecutePackageComplete(string wzPackageId, int hrExitCode, ApplyRestart restart, int nRecommendation)
        {
            ExecutePackageCompleteEventArgs args = new ExecutePackageCompleteEventArgs(wzPackageId, hrExitCode, restart, nRecommendation);
            this.OnExecutePackageComplete(args);

            return args.Result;
        }
Exemplo n.º 3
0
 /// <summary>
 /// Creates a new instance of the <see cref="ExecutePackageCompleteEventArgs"/> class.
 /// </summary>
 /// <param name="packageId">The identity of the packaged that was acted on.</param>
 /// <param name="status">The return code of the operation.</param>
 /// <param name="restart">Whether a restart is required.</param>
 /// <param name="recommendation">Recommended result from engine.</param>
 public ExecutePackageCompleteEventArgs(string packageId, int status, ApplyRestart restart, int recommendation)
     : base(status, recommendation)
 {
     this.packageId = packageId;
     this.restart = restart;
 }
Exemplo n.º 4
0
        Result IBootstrapperApplication.OnApplyComplete(int hrStatus, ApplyRestart restart)
        {
            ApplyCompleteEventArgs args = new ApplyCompleteEventArgs(hrStatus, restart);
            this.OnApplyComplete(args);

            this.applying = false;

            return args.Result;
        }