示例#1
0
 public AdminController(PlayerQueueService _playerQueue,
                        CalculationUpdatesService _updateService,
                        MapCalculationService _mapCalculationService)
 {
     playerQueue           = _playerQueue;
     updateService         = _updateService;
     mapCalculationService = _mapCalculationService;
 }
示例#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;
        }