Esempio n. 1
0
 public RestClient(RestClientHandler handler, ClientConfiguration clientConfiguration)
 {
     this.httpClient         = new HttpClient(handler);
     this.httpClient.Timeout = TimeSpan.FromMilliseconds(clientConfiguration.TimeoutMillis);
     this.httpClient.MaxResponseContentBufferSize         = clientConfiguration.ResponseContentBufferBytes;
     this.httpClient.DefaultRequestHeaders.ExpectContinue = true;
 }
Esempio n. 2
0
 public RestClient(RestClientHandler handler, ClientConfiguration clientConfiguration)
 {
     this.httpClient         = new HttpClient(handler);
     this.httpClient.Timeout = TimeSpan.FromMilliseconds(clientConfiguration.TimeoutMillis);
     this.httpClient.MaxResponseContentBufferSize = clientConfiguration.ResponseContentBufferBytes;
 }
Esempio n. 3
0
 public RestClient(RestClientHandler handler)
 {
     this.httpClient = new HttpClient(handler);
 }