/// <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)); }
/// <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)); }