Exemple #1
0
 public HttpTask(HttpConnectionManager conns, HttpRequestMessage request, bool disposeRequest, bool disposeResponse)
 {
     Connections     = conns ?? throw new ArgumentNullException(nameof(conns));
     Request         = request ?? throw new ArgumentNullException(nameof(request));
     DisposeRequest  = disposeRequest;
     DisposeResponse = disposeResponse;
 }
Exemple #2
0
 public HttpClient()
 {
     Connections = new HttpConnectionManager();
     Tasks       = new HttpTaskManager();
 }