public PreemptiveHttpClient(string username, string password)
 {
     _httpClient = CreateHttpClient(username, password);
 }
        private CustomWebClient CreateHttpClient(string username, string password)
        {
            CustomWebClient client = new CustomWebClient(username, password);
            client.Credentials = new NetworkCredential(username, password);

            return client;
        }