Пример #1
0
        public HttpClientCache(IHttpClientFactory httpClientFactory, X509CertificateManager x509CertificateManager)
        {
            _httpClientFactory      = httpClientFactory;
            _x509CertificateManager = x509CertificateManager;

            _cacheOptions = new MemoryCacheOptions
            {
                SizeLimit = 500,
            };
            _clients = new MemoryCache(_cacheOptions);
        }
Пример #2
0
 public HttpClientFactory(X509CertificateManager x509CertificateManager)
 {
     _x509CertificateManager = x509CertificateManager;
 }