Ejemplo n.º 1
0
        /// <summary>
        /// Updates the progress.
        /// </summary>
        /// <param name="progressInfo">The progress info.</param>
        protected void UpdateProgress(ProgressInfo progressInfo)
        {
            if (this.ExecutionConfiguration == null || this.ExecutionConfiguration.ProgressAction == null)
            {
                return;
            }

            //progressInfo.TimeElapsed = DateTime.Now - this.startTime;

            if (this.CommandManager == null)
            {
                this.ExecutionConfiguration.ProgressAction(progressInfo);
                return;
            }

            this.CommandManager.MarshallBack(() => this.ExecutionConfiguration.ProgressAction(progressInfo));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Updates the progress.
        /// </summary>
        /// <param name="progressInfo">The progress info.</param>
        protected void UpdateProgress(ProgressInfo progressInfo)
        {
            if (this.ExecutionConfiguration == null || this.ExecutionConfiguration.ProgressAction == null)
            {
                return;
            }

            //progressInfo.TimeElapsed = DateTime.Now - this.startTime;

            if (this.CommandManager == null)
            {
                this.ExecutionConfiguration.ProgressAction(progressInfo);
                return;
            }

            this.CommandManager.MarshallBack(() => this.ExecutionConfiguration.ProgressAction(progressInfo));
        }