Example #1
0
 public HttpClientHandler()
 {
     _handler = _underlyingHandler = new HttpHandlerType();
     if (DiagnosticsHandler.IsGloballyEnabled)
     {
         _handler = new DiagnosticsHandler(_handler);
     }
     ClientCertificateOptions = ClientCertificateOption.Manual;
 }
        public HttpClientHandler()
        {
            _underlyingHandler = new HttpHandlerType();

#if TARGET_BROWSER
            Handler = _underlyingHandler;
            if (DiagnosticsHandler.IsGloballyEnabled())
            {
                Handler = new DiagnosticsHandler(Handler, DistributedContextPropagator.Current);
            }
#endif

            ClientCertificateOptions = ClientCertificateOption.Manual;
        }