/// <summary>Called by the engine when it begins to cache a specific package.</summary> /// <param name="args">The arguments of the event.</param> protected override void OnCachePackageBegin(Wix.CachePackageBeginEventArgs args) { LogVerbose("Enter Method: OnCachePackageBegin"); WPFBootstrapperEventArgs <Wix.CachePackageBeginEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.CachePackageBeginEventArgs>(args); TryInvoke(new Action(() => { _mainWindow.OnCachePackageBegin(cancelArgs); })); if (!cancelArgs.Cancel) { base.OnCachePackageBegin(cancelArgs.Arguments); } LogVerbose("Leaving Method: OnCachePackageBegin"); }
/// <summary>Called by the engine when it begins to cache a specific package.</summary> /// <param name="args">The arguments of the event.</param> protected override void OnCachePackageBegin(Wix.CachePackageBeginEventArgs args) { this.LogBootstrapperEnterEvent(args, "CachePackageBegin"); WPFBootstrapperEventArgs <Wix.CachePackageBeginEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.CachePackageBeginEventArgs>(args); this.TryInvoke(new Action(() => { this.model.OnCachePackageBegin(cancelArgs); })); if (!cancelArgs.Cancel) { base.OnCachePackageBegin(cancelArgs.Arguments); } this.LogBootstrapperLeaveEvent(null, "CachePackageBegin"); }
void OnCachePackageBegin(object sender, CachePackageBeginEventArgs e) { CurrentExecutingPackageName = e.PackageId; }
/// <summary> /// Called by the engine when it begins to cache a specific package. /// </summary> /// <param name="args"></param> protected virtual void OnCachePackageBegin(CachePackageBeginEventArgs args) { EventHandler<CachePackageBeginEventArgs> handler = this.CachePackageBegin; if (null != handler) { handler(this, args); } }
Result IBootstrapperApplication.OnCachePackageBegin(string wzPackageId, int cCachePayloads, long dw64PackageCacheSize) { CachePackageBeginEventArgs args = new CachePackageBeginEventArgs(wzPackageId, cCachePayloads, dw64PackageCacheSize); this.OnCachePackageBegin(args); return args.Result; }