public static void Initialize() // constructor for our games list and players { games = new List <GamePacman>(); // <- create functions to add players and games waiting_players = new List <IConnectedClient>(); isRunning = false; spectators = new List <ISocket>(); waiting_spectators = new List <ISocket>(); context = new AIBracketContext(); }
public BaseController(AIBracketContext appDbContext, UserManager <AppUser> userManager, IJwtFactory jwtFactory, IOptions <JwtIssuerOptions> jwtOptions) { _appDbContext = appDbContext; _userManager = userManager; _jwtFactory = jwtFactory; _jwtOptions = jwtOptions.Value; _serializerSettings = new JsonSerializerSettings { Formatting = Formatting.Indented }; }
public GameController(AIBracketContext appDbContext, UserManager <AppUser> userManager, IJwtFactory jwtFactory, IOptions <JwtIssuerOptions> jwtOptions) : base(appDbContext, userManager, jwtFactory, jwtOptions) { }