Example #1
0
        public BackgroundThread(int id, RaceCarContext context)
        {
            _id                = id;
            _timerinterval     = 5000;
            increasinginterval = _timerinterval;
            _context           = context;

            TimerCallback tcb = new TimerCallback(CalculationOfIndicators);

            timer = new Timer(tcb, _id, 5000, _timerinterval);
        }
Example #2
0
 public AdminController(IService service, RaceCarContext context)
 {
     _service = service;
     db       = context;
 }
Example #3
0
 public EntityRepository(RaceCarContext cont)
 {
     _context = cont;
 }