public ScoreV2LatestSet GetScoreSet()
 {
     try
     {
         return(_scoreProvider.GetScores());
     }
     catch (Exception ex)
     {
         _logger.LogError(ex.Message, ex);
         throw new InvalidOperationException("楽譜を取得できませんでした", ex);
     }
 }
Esempio n. 2
0
        protected void UpdateScores()
        {
            if (scoreProvider == null)
            {
                throw new Exception("Score provider must not be null");
            }

            foreach (var player in scoreProvider.GetScores().GetSumByType())
            {
                var playerName   = player.Key;
                var playerScores = player.Value;

                UpdateScoresForPlayer(playerName, playerScores);
            }
        }