public BotGameManagerService(
     IChallengerService challengers,
     IGameService gameService,
     IMatchesRepository resultsDao,
     ILogger <BotGameManagerService> logger
     )
 {
     _challengersService = challengers;
     _gameService        = gameService;
     _resultsDao         = resultsDao;
     _logger             = logger;
 }
        public MultiplayerGameManagerService(
            IPlayFabService playFabService,
            ITokenService tokenService,
            IGameService gameService,
            IOptions <MultiplayerSettings> options,
            IMatchesRepository repository,
            ILogger <MultiplayerGameManagerService> logger)
        {
            _playFabService      = playFabService;
            _tokenService        = tokenService;
            _gameService         = gameService;
            _repository          = repository;
            _multiplayerSettings = options.Value;
            _logger = logger;

            if (_multiplayerSettings.Token.TicketStatusWait < 60000 / FREE_TIER_MAX_REQUESTS)
            {
                _logger.LogWarning($"PlayFab free tier limits the Get Matchmaking Ticket requests to a max of {FREE_TIER_MAX_REQUESTS} per minute. " +
                                   "A MatchmakingRateLimitExceeded error might occur while waiting for a multiplayer match");
            }
        }
Beispiel #3
0
 public MatchesController(IMatchesRepository matchesRepository)
 {
     _MatchesRepo = matchesRepository;
 }
 public TableCalculator(IPlayersRepository playersRepository, IMatchesRepository matchesRepository)
 {
     _playersRepository = playersRepository;
     _matchesRepository = matchesRepository;
 }
Beispiel #5
0
 public MatchesController(IMatchesRepository matchesRepository)
 {
     this.matchesRepository = matchesRepository;
 }
Beispiel #6
0
 public GamesController(IMatchesRepository resultDao)
 {
     _resultDao = resultDao;
 }
 public MatchesController(IMatchesRepository <Match> matchesRepository, IMatchesService matchesService)
 {
     this._matchesRepository = matchesRepository;
     this._matchesService    = matchesService;
 }
 public MatchesService(IMatchesRepository matchesRepository)
 {
     this.matchesRepository = matchesRepository;
 }
Beispiel #9
0
 public MatchesController(IMatchesRepository matchesRepo, IPlayersRepository playersRepo)
 {
     _matchesRepo = matchesRepo;
     _playersRepo = playersRepo;
 }
Beispiel #10
0
 public MatchesServices(IMatchesRepository matchesRepository, IUserServices userServices)
 {
     _matchesRepository = matchesRepository;
     _userServices      = userServices;
 }
Beispiel #11
0
 public MatchesManager(IMatchesRepository matchesRepository,
                       IPairingsRepository pairingsRepository)
 {
     _matchesRepository  = matchesRepository;
     _pairingsRepository = pairingsRepository;
 }
 public TournamentsController(ITournamentRepository TournamentRepo, IMatchesRepository MatchesRepo, ITournamentAlgorithm tournamentAlgorithm)
 {
     _TournamentRepo = TournamentRepo;
     _MatchesRepo = MatchesRepo;
     _tournamentAlgorithm = tournamentAlgorithm;
 }
Beispiel #13
0
 public MatchesController(IMatchesRepository matchesRepository, ITipsRepository tipsRepository)
 {
     _matchesRepository = matchesRepository;
     _tipsRepository    = tipsRepository;
 }
Beispiel #14
0
 public MatchesController(IMatchesRepository repository, IMapper mapper, LinkGenerator linkGenerator)
 {
     _repository    = repository;
     _mapper        = mapper;
     _linkGenerator = linkGenerator;
 }
 public MatchesService(IMatchesRepository matchesRepository, IPlayersService playersServices)
 {
     _matchesRepository = matchesRepository;
     _playersServices   = playersServices;
 }
 public TournamentAlgorithm(IMatchesRepository matchesRepository)
 {
     _MatchesRepo = matchesRepository;
 }
 public MatchesService(IMatchesRepository <Match> matchesRepository, ITeamsRepository <Team> teamsRepository)
 {
     this._teamsRepository   = teamsRepository;
     this._matchesRepository = matchesRepository;
 }
Beispiel #18
0
 public DefaultController(IHeroesRepository heroesRepository, IMatchesRepository matchesRepository)
 {
     this.heroesRepository  = heroesRepository;
     this.matchesRepository = matchesRepository;
 }
 public MatchController(IMatchesRepository <int> matchesRepository)
 {
     _matchesRepository = matchesRepository;
 }
Beispiel #20
0
 public MatchService(IFileStorage fileStorage, IMatchesRepository matchesRepository)
 {
     _fileStorage       = fileStorage;
     _matchesRepository = matchesRepository;
 }
 public TournamentService(IFileStorage fileStorage, ITournamentsRepository tournamentsRepository, IMatchesRepository matchesRepository)
 {
     _fileStorage           = fileStorage;
     _tournamentsRepository = tournamentsRepository;
     _matchesRepository     = matchesRepository;
 }
 public MatchesApplication(IMatchesRepository matchesRepository)
 {
     _matchesRepository = matchesRepository;
 }