Example #1
0
 public DocumentPageRepository(IStubToUrlConverter urlGenerator, IHttpClient httpClient, DocumentPageFactory documentPageFactory, IApplicationConfiguration config)
 {
     _urlGenerator        = urlGenerator;
     _httpClient          = httpClient;
     _documentPageFactory = documentPageFactory;
     _config = config;
     authenticationHeaders = new Dictionary <string, string> {
         { "Authorization", _config.GetContentApiAuthenticationKey() }, { "X-ClientId", _config.GetWebAppClientId() }
     };
 }
 public HealthcheckService(string appVersionPath, string shaPath, IFileWrapper fileWrapper,
                           FeatureToggles featureToggles, IHttpClient httpMaker, IStubToUrlConverter urlGenerator, string environment, IApplicationConfiguration config, BusinessId businessId)
 {
     _fileWrapper      = fileWrapper;
     _featureToggles   = featureToggles;
     _httpMaker        = httpMaker;
     _urlGenerator     = urlGenerator;
     _config           = config;
     _appVersion       = GetFirstFileLineOrDefault(appVersionPath, "dev");
     _sha              = GetFirstFileLineOrDefault(shaPath, string.Empty);
     _environment      = environment;
     authenticationKey = _config.GetContentApiAuthenticationKey();
     webAppClientId    = _config.GetWebAppClientId();
     _businessId       = businessId;
 }