Example #1
0
 public HttpClientChannelAsyncRequest(HttpClientRequestChannel channel)
 {
     _channel = channel;
     _to      = channel.RemoteAddress;
     _via     = channel.Via;
     _factory = channel.Factory;
 }
Example #2
0
 public HttpClientChannelAsyncRequest(HttpClientRequestChannel channel)
 {
     _channel     = channel;
     _to          = channel.RemoteAddress;
     _via         = channel.Via;
     _factory     = channel.Factory;
     _httpClient  = _factory.GetHttpClient();
     _httpSendCts = new CancellationTokenSource();
 }