Пример #1
0
        public HttpClientHandler()
        {
#if TARGETS_BROWSER
            _underlyingHandler = new BrowserHttpHandler();
#else
            _underlyingHandler = new SocketsHttpHandler();
#endif
            _diagnosticsHandler      = new DiagnosticsHandler(_underlyingHandler);
            ClientCertificateOptions = ClientCertificateOption.Manual;
        }
Пример #2
0
        public HttpClientHandler()
        {
#if TARGET_BROWSER
            _underlyingHandler = new BrowserHttpHandler();
#else
            _underlyingHandler = new SocketsHttpHandler();
#endif
            if (DiagnosticsHandler.IsGloballyEnabled())
            {
                _diagnosticsHandler = new DiagnosticsHandler(_underlyingHandler);
            }
            ClientCertificateOptions = ClientCertificateOption.Manual;
        }