Пример #1
0
        public Program(ProcessParameters parameters, double intervalMilisec, IProgress <DateTime?> nextRun = null, IProgress <ProgressInfo> processProgress = null)
        {
            _parameters      = parameters;
            _intervalMilisec = intervalMilisec;
            IsRunning        = false;

            _timeUpdate          = new Timer(500);
            _timeUpdate.Elapsed += _timeUpdate_Elapsed;

            _processTimer          = new TimerPlus(intervalMilisec);
            _processTimer.Elapsed += _processTimer_Elapsed;

            _processProgress = processProgress;
            _nextRun         = nextRun;
        }
Пример #2
0
 public Process(ProcessParameters parameters, CancellationToken?token = null, IProgress <ProgressInfo> processProgress = null)
 {
     _token           = token;
     _parameters      = parameters;
     _processProgress = processProgress;
 }