Ejemplo n.º 1
0
 public void AddAndUseSecret(ISecret napsterSecrets)
 {
     this.napsterSecret = napsterSecrets;
     client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
     client.DefaultRequestHeaders.Authorization = napsterSecret.GetBasicAuthenticationHeaderValue();
 }