Skip to Main Content
C# in a Nutshell, Second Edition
book

C# in a Nutshell, Second Edition

by Peter Drayton, Ben Albahari, Ted Neward
August 2003
Intermediate to advanced content levelIntermediate to advanced
928 pages
32h 1m
English
O'Reilly Media, Inc.
Content preview from C# in a Nutshell, Second Edition

Name

ServicePoint

Synopsis

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
}

Returned By

HttpWebRequest.ServicePoint, ServicePointManager.FindServicePoint( )

Passed To

ICertificatePolicy.CheckValidationResult( )

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C# in a Nutshell

C# in a Nutshell

Ben Albahari, Ted Neward, Peter Drayton
C# 7.0 in a Nutshell

C# 7.0 in a Nutshell

Joseph Albahari, Ben Albahari
C# Cookbook, 2nd Edition

C# Cookbook, 2nd Edition

Jay Hilyard, Stephen Teilhet
C# Cookbook

C# Cookbook

Stephen Teilhet, Jay Hilyard

Publisher Resources

ISBN: 0596005261Catalog PageErrata