public AddClientCerts ( X509CertificateCollection certificates ) : void | ||
certificates | X509CertificateCollection | |
return | void |
/// <summary> /// Adds certificates, credentials, proxies and cookies to the request /// </summary> /// <param name="req">Request object</param> private void PrepareClientRequest(HttpWebRequestWrapper req) { if (_connection.Certificates != null) { req.AddClientCerts(_connection.Certificates); } if (_connection.CookieContainer != null) { req.CookieContainer = _connection.CookieContainer; } if (_connection.Credentials != null) { req.Credentials = _connection.Credentials; } if (_connection.Proxy != null) { req.Proxy = _connection.Proxy; } }
/// <summary> /// Adds certificates, credentials, proxies and cookies to the request /// </summary> /// <param name="req">Request object</param> private void PrepareClientRequest(HttpWebRequestWrapper req) { #if NET4 if (_connection.Certificates != null) { req.AddClientCerts(_connection.Certificates); } #endif if (_connection.CookieContainer != null) { req.CookieContainer = _connection.CookieContainer; } if (_connection.Credentials != null) { req.Credentials = _connection.Credentials; } if (_connection.Proxy != null) { req.Proxy = _connection.Proxy; } }