Esempio n. 1
0
 public EpuletService(StrategyGameContext context, UserManager <StrategyGameUser> userManager, ICommonService commonService, IMapper mapper)
 {
     _context       = context;
     _userManager   = userManager;
     _commonService = commonService;
     _mapper        = mapper;
 }
Esempio n. 2
0
 public RegistrationService(
     UserManager <StrategyGameUser> userManager,
     SignInManager <StrategyGameUser> signInManager,
     StrategyGameContext context,
     IJWTService jwtService,
     IOrszagService orszagService
     )
 {
     _userManager   = userManager;
     _signInManager = signInManager;
     _context       = context;
     _jwtService    = jwtService;
     _orszagService = orszagService;
 }
Esempio n. 3
0
 public OrszagService(StrategyGameContext context,
                      UserManager <StrategyGameUser> userManager,
                      IMapper mapper,
                      IEgysegService egysegService,
                      IEpuletService epuletService,
                      ICommonService commonService,
                      IGlobalService globalService)
 {
     _context       = context;
     _mapper        = mapper;
     _userManager   = userManager;
     _egysegService = egysegService;
     _epuletService = epuletService;
     _commonService = commonService;
     _globalService = globalService;
 }
Esempio n. 4
0
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IHostingEnvironment env, StrategyGameContext ctx)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }
            app.UseCors(MyAllowSpecificOrigins);
            app.UseSwagger();
            app.UseSwaggerUI(c =>
            {
                c.SwaggerEndpoint("./swagger/v0.1/swagger.json", "UnderSea API v0.1");
                c.RoutePrefix = string.Empty;
            });
            app.UseAuthentication();
            app.UseMvc();


            //ctx.Database.EnsureCreated();
        }
Esempio n. 5
0
 public CommonService(StrategyGameContext strategyGameContext)
 {
     _context = strategyGameContext;
 }
Esempio n. 6
0
        /// <summary>
        ///
        /// </summary>
        //class EgysegAr
        //{
        //    public EgysegTipus Tipus { get; set; }

        //    public long Ar { get; set; }
        //}

        //bool checkArak()
        //{
        //     + ContextBoundObject.EgysegAr(g tipus> == asd).Ar
        //}
        ///// <summary>
        ///
        /// </summary>



        public EgysegService(StrategyGameContext context, IMapper mapper, ICommonService commonService)
        {
            _context       = context;
            _mapper        = mapper;
            _commonService = commonService;
        }
Esempio n. 7
0
 public TestController(StrategyGameContext context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
Esempio n. 8
0
 public CountryService(StrategyGameContext context)
 {
     _context = context;
 }
Esempio n. 9
0
 public GameService(StrategyGameContext context)
 {
     _context = context;
 }
Esempio n. 10
0
 public GlobalService(StrategyGameContext context, ICommonService commonService, IMapper mapper)
 {
     _context       = context;
     _commonService = commonService;
     _mapper        = mapper;
 }
Esempio n. 11
0
 public EndTurnService(StrategyGameContext context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }