예제 #1
0
 public AdminController(IPubstarsDb db, RoleManager <IdentityRole> rm, UserManager <ApplicationUser> um, ApplicationDbContext ctx)
 {
     _db  = db;
     _rm  = rm;
     _um  = um;
     _ctx = ctx;
 }
예제 #2
0
 public LeaderboardService(IPubstarsDb context, IStatsService stats, IMemoryCache cache, IConfiguration config)
 {
     _db           = context;
     _statsService = stats;
     _cache        = cache;
     MIN_GAMES     = config.GetValue <int>("mingames");
 }
예제 #3
0
 public UserdataController(IPubstarsDb db)
 {
     _db = db;
 }
예제 #4
0
 public GamesController(IPubstarsDb db, UserManager <ApplicationUser> userManager, ILeaderboardService ls)
 {
     _db           = db;
     _userManager  = userManager;
     _leaderboards = ls;
 }
예제 #5
0
 public ProfileController(IPubstarsDb db, IStatsService stats, UserManager <ApplicationUser> userManager)
 {
     _db          = db;
     _stats       = stats;
     _userManager = userManager;
 }