コード例 #1
0
        public RebaseController(
            IChampionService championService,
            IItemService itemService,
            ILeagueService leagueService,
            IMasteryService masteryService,
            IMatchService matchService,
            IPlayerService playerService,
            ITeamService teamService,
            ITournamentService tournamentService,
            ISpellService spellService,
            ISerieService serieService,
            ILogger <RebaseController> logger)
        {
            _championService   = championService ?? throw new ArgumentNullException(nameof(championService));
            _itemService       = itemService ?? throw new ArgumentNullException(nameof(itemService));
            _leagueService     = leagueService ?? throw new ArgumentNullException(nameof(leagueService));
            _masteryService    = masteryService ?? throw new ArgumentNullException(nameof(masteryService));
            _matchService      = matchService ?? throw new ArgumentNullException(nameof(matchService));
            _playerService     = playerService ?? throw new ArgumentNullException(nameof(playerService));
            _serieService      = serieService ?? throw new ArgumentNullException(nameof(serieService));
            _spellService      = spellService ?? throw new ArgumentNullException(nameof(spellService));
            _teamService       = teamService ?? throw new ArgumentNullException(nameof(teamService));
            _tournamentService = tournamentService ?? throw new ArgumentNullException(nameof(tournamentService));

            _logger = logger ?? throw new ArgumentNullException(nameof(logger));

            pandaScoreAccessToken = Environment.GetEnvironmentVariable("PandaScoreAPIAccessToken");
        }
コード例 #2
0
 public MasteryController(IMasteryService masteryService, IPDFService pDFService, IMemoryCache memoryCache)
 {
     _masteryService = masteryService ?? throw new ArgumentNullException(nameof(masteryService));
     _pDFService     = pDFService ?? throw new ArgumentNullException(nameof(pDFService));
     _memoryCache    = memoryCache ?? throw new ArgumentNullException(nameof(memoryCache));
 }
コード例 #3
0
 public SkillController(IProfileService profileService, ISkillService skillService, IMasteryService masteryService)
 {
     ProfileService = profileService;
     SkillService = skillService;
     MasteryService = masteryService;
 }