public HttpClientRequest(Uri uri) { RequestUri = uri; Provider = DependencyInjector.Get <IHttpClientProvider> (); Handler = Provider.Create(); Client = Handler.CreateHttpClient(); }
public HttpClientRequest( InstrumentationOperation operation, HttpClientHandler handler, Uri requestUri) { Operation = operation; Parent = handler; RequestUri = requestUri; Provider = DependencyInjector.Get <IHttpClientProvider> (); Handler = Provider.Create(); Client = Handler.CreateHttpClient(); }