Class ServicePointManagerConfigurator.OperationPolicy
Provides contract and default implementation for certificate trust and endpoint binding
Inheritance
System.Object
ServicePointManagerConfigurator.OperationPolicy
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: NFX.Web
Assembly: NFX.Web.dll
Syntax
public class OperationPolicy : IConfigurable
Fields
CONFIG_CASE_SECTION
Declaration
public const string CONFIG_CASE_SECTION = "case"
Field Value
Type | Description |
---|---|
System.String |
CONFIG_DEFAULT_CERTIFICATE_VALIDATION_SECTION
Declaration
public const string CONFIG_DEFAULT_CERTIFICATE_VALIDATION_SECTION = "default-certificate-validation"
Field Value
Type | Description |
---|---|
System.String |
CONFIG_TRUSTED_ATTR
Declaration
public const string CONFIG_TRUSTED_ATTR = "trusted"
Field Value
Type | Description |
---|---|
System.String |
m_DefaultCertValUris
Declaration
protected Registry<ServicePointManagerConfigurator.OperationPolicy._uri> m_DefaultCertValUris
Field Value
Type | Description |
---|---|
Registry<ServicePointManagerConfigurator.OperationPolicy._uri> |
Properties
CertValTrustedDefault
Declaration
public bool CertValTrustedDefault { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
BindIPEndPoint(ServicePointManagerConfigurator.ServicePointConfigurator, IPEndPoint, Int32)
Declaration
public virtual IPEndPoint BindIPEndPoint(ServicePointManagerConfigurator.ServicePointConfigurator servicePointConfigurator, IPEndPoint remoteEndPoint, int retryCount)
Parameters
Type | Name | Description |
---|---|---|
ServicePointManagerConfigurator.ServicePointConfigurator | servicePointConfigurator | |
System.Net.IPEndPoint | remoteEndPoint | |
System.Int32 | retryCount |
Returns
Type | Description |
---|---|
System.Net.IPEndPoint |
Configure(IConfigSectionNode)
Declaration
public virtual void Configure(IConfigSectionNode node)
Parameters
Type | Name | Description |
---|---|---|
IConfigSectionNode | node |
ServerCertificateValidationCallback(Object, X509Certificate, X509Chain, SslPolicyErrors)
Declaration
public virtual bool ServerCertificateValidationCallback(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | |
System.Security.Cryptography.X509Certificates.X509Certificate | certificate | |
System.Security.Cryptography.X509Certificates.X509Chain | chain | |
System.Net.Security.SslPolicyErrors | sslPolicyErrors |
Returns
Type | Description |
---|---|
System.Boolean |