Files
mono/mcs/class/System/System.Net/ServicePoint.cs
T
Lawrence Pit c24932898e 2002-05-06 Lawrence Pit <[email protected]>
* WebRequest.cs: added
	* WebResponse.cs: implemented
	* WebException.cs: implemented
	* WebHeaderCollection.cs: added
	* HttpVersion.cs: implemented
	* HttpContinueDelegate.cs: added
	* IWebProxy.cs: added
	* IWebRequestCreate.cs: added
	* ICertificatePolicy.cs: added
	* ServicePoint.cs: stubbed
	* ServicePointManager.cs: stubbed
	* CookieContainer.cs: added
	* Authorization.cs: implemented

svn path=/trunk/mcs/; revision=4315
2002-05-05 18:37:57 +00:00

93 lines
1.8 KiB
C#

//
// System.Net.ServicePoint
//
// Author:
// Lawrence Pit ([email protected])
//
using System;
using System.Security.Cryptography.X509Certificates;
namespace System.Net
{
public class ServicePoint
{
private Uri uri;
private int connectionLimit;
private int maxIdleTime;
// Constructors
internal ServicePoint (Uri uri, int connectionLimit, int maxIdleTime)
{
this.uri = uri;
this.connectionLimit = connectionLimit;
this.maxIdleTime = maxIdleTime;
}
// Properties
public Uri Address {
get { return this.uri; }
}
[MonoTODO]
public X509Certificate Certificate {
get { throw new NotImplementedException (); }
}
[MonoTODO]
public X509Certificate ClientCertificate {
get { throw new NotImplementedException (); }
}
[MonoTODO]
public int ConnectionLimit {
get { return connectionLimit; }
set {
if (value <= 0)
throw new ArgumentOutOfRangeException ();
connectionLimit = value;
}
}
[MonoTODO]
public string ConnectionName {
get { throw new NotImplementedException (); }
}
[MonoTODO]
public int CurrentConnections {
get { throw new NotImplementedException (); }
}
[MonoTODO]
public DateTime IdleSince {
get { throw new NotImplementedException (); }
}
[MonoTODO]
public int MaxIdleTime {
get { return maxIdleTime; }
set { this.maxIdleTime = value; }
}
[MonoTODO]
public virtual Version ProtocolVersion {
get { throw new NotImplementedException (); }
}
[MonoTODO]
public bool SupportsPipelining {
get { throw new NotImplementedException (); }
}
// Methods
[MonoTODO]
public override int GetHashCode()
{
throw new NotImplementedException ();
}
}
}