public LegionTdController(LegionTdContext context, SteamApi steamApi, IMemoryCache cache, IConfiguration configuration)
 {
     _db                 = context;
     _cache              = cache;
     _steamApi           = steamApi;
     _dedicatedServerKey = configuration["dedicatedServerKey"];
 }
 private static IQueryable <Player> GetFullPlayerQueryable(LegionTdContext context)
 {
     return(context.Players
            .Include(p => p.Matches)
            .ThenInclude(m => m.Fraction)
            .Include(p => p.Matches)
            .ThenInclude(m => m.Match)
            .AsNoTracking());
 }
 public BugReportModel(LegionTdContext db)
 {
     _db = db;
 }
示例#4
0
 public BuildersModel(LegionTdContext db)
 {
     _db = db;
 }
示例#5
0
 public SteamApi(IConfiguration configuration, LegionTdContext db)
 {
     SteamPlayerApi = configuration["steamApi"];
     SteamApiKey    = configuration["steamApiKey"];
     _db            = db;
 }
示例#6
0
 public PlayerModel(SteamApi steamApi, LegionTdContext db)
 {
     _db       = db;
     _steamApi = steamApi;
 }
示例#7
0
 public IndexModel(LegionTdContext db)
 {
     _db = db;
 }
示例#8
0
 public MatchesModel(LegionTdContext db)
 {
     _db = db;
 }
示例#9
0
 public SearchModel(LegionTdContext db)
 {
     _db = db;
 }
示例#10
0
 public RankingModel(LegionTdContext db)
 {
     _db = db;
 }
示例#11
0
 public BugsModel(LegionTdContext db)
 {
     _db = db;
 }