/// <summary>Fired when the update detection has found a potential update candidate.</summary> /// <param name="args">Additional arguments for this event.</param> protected override void OnDetectUpdate(Wix.DetectUpdateEventArgs args) { LogVerbose("Enter Method: OnDetectUpdate"); WPFBootstrapperEventArgs <Wix.DetectUpdateEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.DetectUpdateEventArgs>(args); TryInvoke(new Action(() => { _mainWindow.OnDetectUpdate(cancelArgs); })); if (!cancelArgs.Cancel) { base.OnDetectUpdate(cancelArgs.Arguments); } LogVerbose("Leaving Method: OnDetectUpdate"); }
/// <summary>Fired when the update detection has found a potential update candidate.</summary> /// <param name="args">Additional arguments for this event.</param> protected override void OnDetectUpdate(Wix.DetectUpdateEventArgs args) { this.LogBootstrapperEnterEvent(args, "DetectUpdate"); WPFBootstrapperEventArgs <Wix.DetectUpdateEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.DetectUpdateEventArgs>(args); this.TryInvoke(new Action(() => { this.model.OnDetectUpdate(cancelArgs); })); if (!cancelArgs.Cancel) { base.OnDetectUpdate(cancelArgs.Arguments); } this.LogBootstrapperLeaveEvent(null, "DetectUpdate"); }
Result IBootstrapperApplication.OnDetectUpdate(string wzUpdateLocation, long dw64Size, long dw64Version, string wzTitle, string wzSummary, string wzContentType, string wzContent, int nRecommendation) { DetectUpdateEventArgs args = new DetectUpdateEventArgs(wzUpdateLocation, dw64Size, dw64Version, wzTitle, wzSummary, wzContentType, wzContent, nRecommendation); this.OnDetectUpdate(args); return args.Result; }
/// <summary> /// Fired when the update detection has found a potential update candidate. /// </summary> /// <param name="args">Additional arguments for this event.</param> protected virtual void OnDetectUpdate(DetectUpdateEventArgs args) { EventHandler<DetectUpdateEventArgs> handler = this.DetectUpdate; if (null != handler) { handler(this, args); } }