Esempio n. 1
0
        public void StopTimedEventor(TimedEventor timedEventor)
        {
            TimeSpan timeToRemove = _listOfActiveEventors[timedEventor];

            _listOfActiveEventors.Remove(timedEventor);
            _eventorsByTime.Remove(timeToRemove);
        }
Esempio n. 2
0
 private void StartTimedEventor(TimedEventor timedEventor, TimeSpan firstActionTime)
 {
     while (_eventorsByTime.ContainsKey(firstActionTime))
     {
         firstActionTime = firstActionTime.Add(new TimeSpan(1));
         timedEventor.IncrementActionTime(new TimeSpan(1));
     }
     _listOfActiveEventors.Add(timedEventor, firstActionTime);
     _eventorsByTime.Add(firstActionTime, timedEventor);
 }
Esempio n. 3
0
 public void StartTimedAtCurrentTime(TimedEventor timedEventor)
 {
     StartTimedEventor(timedEventor, this.CurrentProcessingTimeSpan);
 }