示例#1
0
 public KontentStore(
     IKontentRateLimiter kontentRateLimiter,
     HttpClient httpClient
     )
 {
     this.kontentRateLimiter = kontentRateLimiter;
     this.httpClient         = httpClient;
 }
示例#2
0
        public KontentRepository(
            IKontentRateLimiter kontentRateLimiter,
            HttpClient httpClient,
            Settings settings
            )
        {
            this.kontentRateLimiter = kontentRateLimiter;
            this.httpClient         = httpClient;
            this.settings           = settings;

            this.httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("bearer", settings.KenticoKontent?.ManagementApiKey);
        }