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;
 }