public HttpMessageHandler Get(HttpMessageHandlerOption option)
        {
            if (option.Certificate == null)
            {
                return(new HttpClientHandler
                {
                    CookieContainer = option.CookieContainer,
                });
            }

            return(new HttpClientHandler
            {
                ClientCertificates = { option.Certificate },
                CookieContainer = option.CookieContainer
            });
        }
コード例 #2
0
 public HttpMessageHandler Get(HttpMessageHandlerOption option)
 {
     return(_messageHandler);
 }