August 2003
Intermediate to advanced
928 pages
32h 1m
English
ServicePoint
This class is used
by
ServicePointManager to manage connections to
remote hosts. The .NET Framework reuses service points for all
requests to a given URI. The lifetime of a given
ServicePoint is governed by its
MaxIdleTime property.
The ServicePoint class is a high-level abstraction
of the underlying implementation. Details of the implementation, such
as the sockets used for HTTP transport, are not publicly exposed.
public class ServicePoint { // Public Instance Properties public Uri Address{get; } public X509Certificate Certificate{get; } public X509Certificate ClientCertificate{get; } public int ConnectionLimit{set; get; } public string ConnectionName{get; } public int CurrentConnections{get; } public bool Expect100Continue{set; get; } public DateTime IdleSince{get; } public int MaxIdleTime{set; get; } public virtual Version ProtocolVersion{get; } public bool SupportsPipelining{get; } public bool UseNagleAlgorithm{set; get; } // Public Instance Methods public override int GetHashCode( ); // overrides object }
HttpWebRequest.ServicePoint,
ServicePointManager.FindServicePoint( )
ICertificatePolicy.CheckValidationResult( )