Esempio n. 1
0
 private void SetupCredentials()
 {
     if (!string.IsNullOrEmpty(ApiKey))
     {
         httpClient.AddApiKeyIfSet(ApiKey);
     }
     else
     {
         httpClient.AddAuthenticationHeaderIfSet(AuthenticationHeaderValue);
     }
 }