ServicePoint.cs 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. //
  2. // System.Net.ServicePoint
  3. //
  4. // Author:
  5. // Lawrence Pit ([email protected])
  6. //
  7. using System;
  8. using System.Security.Cryptography.X509Certificates;
  9. namespace System.Net
  10. {
  11. public class ServicePoint
  12. {
  13. private Uri uri;
  14. private int connectionLimit;
  15. private int maxIdleTime;
  16. // Constructors
  17. internal ServicePoint (Uri uri, int connectionLimit, int maxIdleTime)
  18. {
  19. this.uri = uri;
  20. this.connectionLimit = connectionLimit;
  21. this.maxIdleTime = maxIdleTime;
  22. }
  23. // Properties
  24. public Uri Address {
  25. get { return this.uri; }
  26. }
  27. [MonoTODO]
  28. public X509Certificate Certificate {
  29. get { throw new NotImplementedException (); }
  30. }
  31. [MonoTODO]
  32. public X509Certificate ClientCertificate {
  33. get { throw new NotImplementedException (); }
  34. }
  35. [MonoTODO]
  36. public int ConnectionLimit {
  37. get { return connectionLimit; }
  38. set {
  39. if (value <= 0)
  40. throw new ArgumentOutOfRangeException ();
  41. connectionLimit = value;
  42. }
  43. }
  44. [MonoTODO]
  45. public string ConnectionName {
  46. get { throw new NotImplementedException (); }
  47. }
  48. [MonoTODO]
  49. public int CurrentConnections {
  50. get { throw new NotImplementedException (); }
  51. }
  52. [MonoTODO]
  53. public DateTime IdleSince {
  54. get { throw new NotImplementedException (); }
  55. }
  56. [MonoTODO]
  57. public int MaxIdleTime {
  58. get { return maxIdleTime; }
  59. set { this.maxIdleTime = value; }
  60. }
  61. [MonoTODO]
  62. public virtual Version ProtocolVersion {
  63. get { throw new NotImplementedException (); }
  64. }
  65. [MonoTODO]
  66. public bool SupportsPipelining {
  67. get { throw new NotImplementedException (); }
  68. }
  69. // Methods
  70. [MonoTODO]
  71. public override int GetHashCode()
  72. {
  73. throw new NotImplementedException ();
  74. }
  75. }
  76. }