public static void AddGameToCache(RitoCurrentGameInfo Game) { foreach (var p in Game.Participants) PlayerToMatchMap.Add(p.SummonerName.ToLowerInvariant(), Game.GameID); Game.LastCheckDate = DateTime.Now; lock (CurrentGameCache) { CurrentGameCache.Add(Game.GameID, Game); } }
public static string GetMasteriesConfig(this HtmlHelper _this, RitoCurrentGameInfo.Rito_CurrentGameParticipant player ) { return GetMasteriesConfig(player.Masteries); }