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