public IEnumerator TimersExecuteInOrder() { int id = 0; _timerService.StartTimer(delegate { Assert.That(id == 1); id++; }, 0.1f); _timerService.StartTimer(delegate { Assert.That(id == 0); id++; }, 0.05f); _timerService.StartTimer(delegate { Assert.That(id == 2); id++; }, 0.15f); yield return(new WaitForSeconds(0.2f)); Assert.That(id == 3); }
public void Handle(GameWeekStartedEvent domainEvent) { _timer.StartTimer(30, new GameWeekTimerEndedEvent()); PlayGames(); UpdateRecords(); UpdateStandings(); }
public IActionResult ProccessXML(object someXMLObject) { SomeMethodWithXml(someXMLObject) //Reset Timer _timerService.StopTimer(); _timerService.StartTimer(); return(Ok()); }
public void Handle(DivChampPhaseEvent domainEvent) { _timerService.StartTimer(10, new PhaseTimerEndedEvent()); var standings = _season.Standings; standings.EastChamp = CalcFirstPlace(standings.EastStandings); standings.WestChamp = CalcFirstPlace(standings.WestStandings); _repository.Update(standings); }
public void Handle(ChampPhaseEvent domainEvent) { _timerService.StartTimer(10, new PhaseTimerEndedEvent()); DetermineChampion(); }
public void Handle(PreDraftPhaseEvent domainEvent) { _timerService.StartTimer(100, new PhaseTimerEndedEvent()); }