コード例 #1
0
        public void GameResultChangedEventHandler(Guid gameid)
        {
            var fbet = FinihedBets.FirstOrDefault(x => x.Bet.Game.Id == gameid);

            if (fbet != null)
            {
                UpdateScore(fbet.Bet, ScoreProvider.GetScore(fbet.Bet.Game.Result, fbet.Bet.Result));
            }
            var bet = Bets.FirstOrDefault(x => x.Game.Id == gameid);

            if (bet != null)
            {
                UpdateScore(bet, ScoreProvider.GetScore(bet.Game.Result, bet.Result));
            }
        }