Ejemplo 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;
 }
Ejemplo 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;
 }
Ejemplo n.º 3
0
 public RestClient(RestClientHandler handler)
 {
     this.httpClient = new HttpClient(handler);
 }