public async Task Play(string word, string roomName) { _wordPicker.RemoveCachedWord(roomName); _wordPicker.CacheWord(roomName, word, 3); if (!_timerManager.StartTimer(roomName)) { var timer = _timerManager.CreateTimer(roomName); timer.Elapsed += TimerElapsed; _timerManager.StartTimer(roomName); } }
public ITimer CreateTimer(string id, float duration, bool loop) { return(_timerManager.CreateTimer(id, duration, loop)); }