/// <summary>Called when the engine has begun installing the bundle.</summary> /// <param name="args">The arguments of the event.</param> protected override void OnDetectUpdateBegin(Wix.DetectUpdateBeginEventArgs args) { LogVerbose("Enter Method: OnDetectUpdateBegin"); WPFBootstrapperEventArgs <Wix.DetectUpdateBeginEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.DetectUpdateBeginEventArgs>(args); TryInvoke(new Action(() => { _mainWindow.OnDetectUpdateBegin(cancelArgs); })); if (!cancelArgs.Cancel) { base.OnDetectUpdateBegin(cancelArgs.Arguments); } LogVerbose("Leaving Method: OnDetectUpdateBegin"); }
/// <summary>Called when the engine has begun installing the bundle.</summary> /// <param name="args">The arguments of the event.</param> protected override void OnDetectUpdateBegin(Wix.DetectUpdateBeginEventArgs args) { this.LogBootstrapperEnterEvent(args, "DetectUpdateBegin"); WPFBootstrapperEventArgs <Wix.DetectUpdateBeginEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.DetectUpdateBeginEventArgs>(args); this.TryInvoke(new Action(() => { this.model.OnDetectUpdateBegin(cancelArgs); })); if (!cancelArgs.Cancel) { base.OnDetectUpdateBegin(cancelArgs.Arguments); } this.LogBootstrapperLeaveEvent(null, "DetectUpdateBegin"); }
Result IBootstrapperApplication.OnDetectUpdateBegin(string wzUpdateLocation, int nRecommendation) { DetectUpdateBeginEventArgs args = new DetectUpdateBeginEventArgs(wzUpdateLocation, nRecommendation); this.OnDetectUpdateBegin(args); return args.Result; }
/// <summary> /// Called when the update detection phase has begun. /// </summary> /// <param name="args">Additional arguments for this event.</param> protected virtual void OnDetectUpdateBegin(DetectUpdateBeginEventArgs args) { EventHandler<DetectUpdateBeginEventArgs> handler = this.DetectUpdateBegin; if (null != handler) { handler(this, args); } }