コード例 #1
0
 public DependencyModule(
     ILogger <DependencyModule> logger,
     CompaniesHouseOptions companiesHouseOptions
     )
 {
     _logger = logger;
     _companiesHouseOptions = companiesHouseOptions;
 }
コード例 #2
0
 public CompaniesHouseAPI(CompaniesHouseOptions options, SharedOptions sharedOptions)
 {
     Options = options ?? throw new ArgumentNullException("You must provide the companies house options",
                                                          nameof(CompaniesHouseOptions));
     SharedOptions = sharedOptions ?? throw new ArgumentNullException(nameof(sharedOptions));
     BaseUri       = new Uri(Options.ApiServer);
     _apiKey       = Options.ApiKey;
     MaxRecords    = Options.MaxRecords;
 }