Beispiel #1
0
        public async Task <SignalRMessage> ExecuteAsync(EndSessionCommand command, SignalRMessage previousResult)
        {
            await _sessionRepository.Clear();

            await _songRepository.Clear();

            await _currentSongRepository.Clear();

            await _scoreRepository.Clear();

            return(new SignalRMessage
            {
                Arguments = new object[] {  },
                GroupName = null,
                Target = "endSessionCommandNotification",
            });
        }
 public void ClearScore()
 {
     _scoreRepository.Clear();
 }