コード例 #1
0
 public CompetitionController(
     IOptions <ApiSettings> apiSettings,
     ISportApi sportApi,
     ICountryApi countryApi,
     ITeamApi teamApi,
     ICompetitionApi competitionApi
     )
 {
     this.apiSettings    = apiSettings.Value;
     this.sportApi       = sportApi;
     this.countryApi     = countryApi;
     this.teamApi        = teamApi;
     this.competitionApi = competitionApi;
 }
コード例 #2
0
 public HomeController(IWritableOptions <InitSettings> initSettings,
                       IMapper mapper,
                       ISportApi sportApi,
                       ICompetitionApi competitionApi,
                       ICountryApi countryApi,
                       ITeamApi teamApi)
 {
     this.initSettings   = initSettings;
     this.mapper         = mapper;
     this.sportApi       = sportApi;
     this.competitionApi = competitionApi;
     this.countryApi     = countryApi;
     this.teamApi        = teamApi;
 }