コード例 #1
0
 /// <summary>
 ///     Reports a performance scenario measurement progress update.
 /// </summary>
 /// <param name="value">
 ///     The value of the updated progress.
 /// </param>
 void IProgress <ProgressPercentageIncrease> .Report(ProgressPercentageIncrease value)
 {
     lock (this.synchronizationLock)
     {
         this.currentMeasurementProgress += value.Increase / this.scenarioCount;
         this.ReportOverall();
     }
 }
コード例 #2
0
        /// <summary>
        ///     Reports a parameters generation progress update.
        /// </summary>
        /// <param name="value">
        ///     The value of the updated progress.
        /// </param>
        void IProgress <ProgressPercentage> .Report(ProgressPercentage value)
        {
            lock (this.synchronizationLock)
            {
                this.generationProgressIncrease = new ProgressPercentageIncrease(this.generationProgressIncrease.CurrnetProgress, value);
                this.currentMeasurementProgress = ProgressPercentage.Zero;

                this.ReportOverall();
            }
        }