Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 2
0
        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
            };
        }
Ejemplo n.º 3
0
 public GameController(AIBracketContext appDbContext, UserManager <AppUser> userManager, IJwtFactory jwtFactory, IOptions <JwtIssuerOptions> jwtOptions) : base(appDbContext, userManager, jwtFactory, jwtOptions)
 {
 }