Exemplo n.º 1
0
 public AdminController(PlayerQueueService _playerQueue,
                        CalculationUpdatesService _updateService,
                        MapCalculationService _mapCalculationService)
 {
     playerQueue           = _playerQueue;
     updateService         = _updateService;
     mapCalculationService = _mapCalculationService;
 }
Exemplo n.º 2
0
        public ApiController(IMapper _mapper,
                             PlayerQueueService _playerQueue,
                             CalculationUpdatesService _updateService,
                             IConfiguration _configuration,
                             IHttpContextAccessor _httpContextAccessor)
        {
            if (!double.TryParse(_configuration["HighscoreThreshold"], out highscoreThreshold))
            {
                highscoreThreshold = 699.5;
            }

            mapper              = _mapper;
            playerQueue         = _playerQueue;
            updateService       = _updateService;
            httpContextAccessor = _httpContextAccessor;
        }