/// <summary>Called when the engine has started verify the payload.</summary> /// <param name="args">The arguments of the event.</param> protected override void OnCacheVerifyBegin(Wix.CacheVerifyBeginEventArgs args) { LogVerbose("Enter Method: OnCacheVerifyBegin"); WPFBootstrapperEventArgs <Wix.CacheVerifyBeginEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.CacheVerifyBeginEventArgs>(args); TryInvoke(new Action(() => { _mainWindow.OnCacheVerifyBegin(cancelArgs); })); if (!cancelArgs.Cancel) { base.OnCacheVerifyBegin(cancelArgs.Arguments); } LogVerbose("Leaving Method: OnCacheVerifyBegin"); }
/// <summary>Called when the engine has started verify the payload.</summary> /// <param name="args">The arguments of the event.</param> protected override void OnCacheVerifyBegin(Wix.CacheVerifyBeginEventArgs args) { this.LogBootstrapperEnterEvent(args, "CacheVerifyBegin"); WPFBootstrapperEventArgs <Wix.CacheVerifyBeginEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.CacheVerifyBeginEventArgs>(args); this.TryInvoke(new Action(() => { this.model.OnCacheVerifyBegin(cancelArgs); })); if (!cancelArgs.Cancel) { base.OnCacheVerifyBegin(cancelArgs.Arguments); } this.LogBootstrapperLeaveEvent(null, "CacheVerifyBegin"); }
/// <summary> /// Called when the engine has started verify the payload. /// </summary> /// <param name="args"></param> protected virtual void OnCacheVerifyBegin(CacheVerifyBeginEventArgs args) { EventHandler<CacheVerifyBeginEventArgs> handler = this.CacheVerifyBegin; if (null != handler) { handler(this, args); } }
Result IBootstrapperApplication.OnCacheVerifyBegin(string wzPackageId, string wzPayloadId) { CacheVerifyBeginEventArgs args = new CacheVerifyBeginEventArgs(wzPackageId, wzPayloadId); this.OnCacheVerifyBegin(args); return args.Result; }