public AuthenticatedHttpClient(string baseUrl, ICredentials credentials) { baseUrl.CheckIfNull("baseUrl"); credentials.CheckIfNull("credentials"); this.clientHandler = new HttpClientHandler { Credentials = credentials }; this.httpClient = new HttpClient(clientHandler) { BaseAddress = new Uri(baseUrl) }; }