5 // Rolf Bjarne Kvinge <rolf@xamarin.com>
7 // Copyright (c) 2016 Xamarin, Inc.
9 // Permission is hereby granted, free of charge, to any person obtaining a copy
10 // of this software and associated documentation files (the "Software"), to deal
11 // in the Software without restriction, including without limitation the rights
12 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13 // copies of the Software, and to permit persons to whom the Software is
14 // furnished to do so, subject to the following conditions:
16 // The above copyright notice and this permission notice shall be included in
17 // all copies or substantial portions of the Software.
19 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
27 using System.Net.Sockets;
28 using System.Security.Cryptography.X509Certificates;
32 public class ServicePoint
34 const string EXCEPTION_MESSAGE = "System.Net.ServicePoint is not supported on the current platform.";
39 get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
42 static Exception GetMustImplement ()
44 return new NotImplementedException ();
47 public BindIPEndPoint BindIPEndPointDelegate
49 get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
50 set { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
53 public int ConnectionLeaseTimeout {
54 get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
55 set { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
58 public int ConnectionLimit {
59 get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
60 set { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
63 public string ConnectionName {
64 get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
67 public int CurrentConnections {
68 get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
71 public DateTime IdleSince {
72 get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
75 public int MaxIdleTime {
76 get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
77 set { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
80 public virtual Version ProtocolVersion {
81 get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
84 public int ReceiveBufferSize {
85 get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
86 set { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
89 public bool SupportsPipelining {
90 get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
93 public bool Expect100Continue {
94 get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
95 set { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
98 public bool UseNagleAlgorithm {
99 get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
100 set { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
103 public void SetTcpKeepAlive (bool enabled, int keepAliveTime, int keepAliveInterval)
105 throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
108 public bool CloseConnectionGroup (string connectionGroupName)
110 throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
113 public X509Certificate Certificate {
114 get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
117 public X509Certificate ClientCertificate {
118 get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
121 // For reference source
122 internal Socket GetConnection(PooledStream PooledStream, object owner, bool async, out IPAddress address, ref Socket abortSocket, ref Socket abortSocket6)
124 throw new NotImplementedException ();