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());
 }
Ejemplo n.º 3
0
 public BugReportModel(LegionTdContext db)
 {
     _db = db;
 }
Ejemplo n.º 4
0
 public BuildersModel(LegionTdContext db)
 {
     _db = db;
 }
Ejemplo n.º 5
0
 public SteamApi(IConfiguration configuration, LegionTdContext db)
 {
     SteamPlayerApi = configuration["steamApi"];
     SteamApiKey    = configuration["steamApiKey"];
     _db            = db;
 }
Ejemplo n.º 6
0
 public PlayerModel(SteamApi steamApi, LegionTdContext db)
 {
     _db       = db;
     _steamApi = steamApi;
 }
Ejemplo n.º 7
0
 public IndexModel(LegionTdContext db)
 {
     _db = db;
 }
Ejemplo n.º 8
0
 public MatchesModel(LegionTdContext db)
 {
     _db = db;
 }
Ejemplo n.º 9
0
 public SearchModel(LegionTdContext db)
 {
     _db = db;
 }
Ejemplo n.º 10
0
 public RankingModel(LegionTdContext db)
 {
     _db = db;
 }
Ejemplo n.º 11
0
 public BugsModel(LegionTdContext db)
 {
     _db = db;
 }