/// <summary>Called when the engine has progressed on caching the container or payload.</summary> /// <param name="args">The arguments of the event.</param> protected override void OnCacheAcquireProgress(Wix.CacheAcquireProgressEventArgs args) { LogVerbose("Enter Method: OnCacheAcquireProgress"); WPFBootstrapperEventArgs <Wix.CacheAcquireProgressEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.CacheAcquireProgressEventArgs>(args); TryInvoke(new Action(() => { _mainWindow.OnCacheAcquireProgress(cancelArgs); })); if (!cancelArgs.Cancel) { base.OnCacheAcquireProgress(cancelArgs.Arguments); } LogVerbose("Leaving Method: OnCacheAcquireProgress"); }
/// <summary>Called when the engine has progressed on caching the container or payload.</summary> /// <param name="args">The arguments of the event.</param> protected override void OnCacheAcquireProgress(Wix.CacheAcquireProgressEventArgs args) { this.LogBootstrapperEnterEvent(args, "CacheAcquireProgress"); WPFBootstrapperEventArgs <Wix.CacheAcquireProgressEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.CacheAcquireProgressEventArgs>(args); this.TryInvoke(new Action(() => { this.model.OnCacheAcquireProgress(cancelArgs); })); if (!cancelArgs.Cancel) { base.OnCacheAcquireProgress(cancelArgs.Arguments); } this.LogBootstrapperLeaveEvent(null, "CacheAcquireProgress"); }
private void CacheAcquireProgress(object sender, CacheAcquireProgressEventArgs e) { lock (this) { this.cacheProgress = e.OverallPercentage; this.Progress = (this.cacheProgress + this.executeProgress) / 2; e.Result = this.root.Canceled ? Result.Cancel : Result.Ok; } }
private void OnCacheAcquireProgress(object sender, CacheAcquireProgressEventArgs e) { lock (_lock) { _acquireProgress = e.OverallPercentage; Progress = (_acquireProgress + _applyProgress) / _progressPhases; ComponentProgress = _acquireProgress / _progressPhases; ComponentMessageAction = "Acquiring:"; ComponentMessage = string.Format("{0}", e.PayloadId); e.Result = _mainVmFactory.GetViewModelInstance().Cancelled ? Result.Cancel : Result.Ok; } }
private void CacheAcquireProgress(object sender, CacheAcquireProgressEventArgs e) { lock (this) { this.PackageOrContainerId = e.PackageOrContainerId; //this.cacheProgress = e.OverallPercentage; //this.Progress = (this.cacheProgress + this.executeProgress) / this.progressPhases; //e.Result = this.root.Canceled ? Result.Cancel : Result.Ok; } }
/// <summary> /// Called when the engine has progressed on caching the container or payload. /// </summary> /// <param name="args"></param> protected virtual void OnCacheAcquireProgress(CacheAcquireProgressEventArgs args) { EventHandler<CacheAcquireProgressEventArgs> handler = this.CacheAcquireProgress; if (null != handler) { handler(this, args); } }
Result IBootstrapperApplication.OnCacheAcquireProgress(string wzPackageOrContainerId, string wzPayloadId, long dw64Progress, long dw64Total, int dwOverallPercentage) { CacheAcquireProgressEventArgs args = new CacheAcquireProgressEventArgs(wzPackageOrContainerId, wzPayloadId, dw64Progress, dw64Total, dwOverallPercentage); this.OnCacheAcquireProgress(args); return args.Result; }
private void CacheAcquireProgress(object sender, CacheAcquireProgressEventArgs e) { lock (this) { this.CacheProgress = e.OverallPercentage; e.Result = this.Cancelled ? Result.Cancel : Result.Ok; } }