コード例 #1
0
        /// <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");
        }
コード例 #2
0
        /// <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");
        }
コード例 #3
0
 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;
     }
 }
コード例 #4
0
		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;
			}
		}
コード例 #5
0
 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;
     }
 }
コード例 #6
0
ファイル: BootstrapperApplication.cs プロジェクト: zooba/wix3
 /// <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);
     }
 }
コード例 #7
0
ファイル: BootstrapperApplication.cs プロジェクト: zooba/wix3
        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;
        }
コード例 #8
0
 private void CacheAcquireProgress(object sender, CacheAcquireProgressEventArgs e)
 {
     lock (this)
     {
         this.CacheProgress = e.OverallPercentage;
         e.Result = this.Cancelled ? Result.Cancel : Result.Ok;
     }
 }