コード例 #1
0
 public PreemptiveHttpClient(string username, string password)
 {
     _httpClient = CreateHttpClient(username, password);
 }
コード例 #2
0
        private CustomWebClient CreateHttpClient(string username, string password)
        {
            CustomWebClient client = new CustomWebClient(username, password);
            client.Credentials = new NetworkCredential(username, password);

            return client;
        }