/// <summary>
            /// Reporter une progression, qui ne sera pas dans les logs
            /// </summary>
            public void Report(ReporterProgress iProgress)
            {
                lock (_notifierStateListLocker)
                {
                    var notifierProgress = new NotifierProgress();

                    NotifierState theState = GetNotifierState();

                    if (theState.ProgressCounter > iProgress.ProgressCounter)
                    {
                        notifierProgress.IncoherentCounter = true;
                    }

                    theState.ProgressCounter = iProgress.ProgressCounter;

                    notifierProgress.Message = iProgress.Message;
                    notifierProgress.LevelProgressCounter = iProgress.ProgressCounter;
                    notifierProgress.Timer = iProgress.Timer;

                    notifierProgress.LevelProgressCount = theState.ProgressCount;
                    notifierProgress.ThreadCount        = theState.ThreadCount;
                    notifierProgress.Level           = theState.Level;
                    notifierProgress.TotalPercentage = ComputePercentage(_notifier);
                    _notifier.Report(notifierProgress);
                    MyDebug.PrintInformation(notifierProgress);
                }
            }
Beispiel #2
0
 /// <summary>
 /// Report un changement dans le notifier
 /// </summary>
 /// <param name="iProgress"></param>
 public void Report(NotifierProgress iProgress)
 {
     _progression.Report(iProgress);
 }