224 lines
7.8 KiB
C#
224 lines
7.8 KiB
C#
using System;
|
|
using System.Collections.Specialized;
|
|
using System.Net.Security;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Net
|
|
{
|
|
/// <summary>Manages the collection of <see cref="T:System.Net.ServicePoint" /> objects.</summary>
|
|
// Token: 0x0200029C RID: 668
|
|
[Token(Token = "0x200029C")]
|
|
public class ServicePointManager
|
|
{
|
|
// Token: 0x06001165 RID: 4453 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001165")]
|
|
[Address(RVA = "0x8AEA70", Offset = "0x8ADA70", VA = "0x1808AEA70")]
|
|
internal static ICertificatePolicy GetLegacyCertificatePolicy()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Gets or sets a <see cref="T:System.Boolean" /> value that indicates whether the certificate is checked against the certificate authority revocation list.</summary>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the certificate revocation list is checked; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x1700037A RID: 890
|
|
// (get) Token: 0x06001166 RID: 4454 RVA: 0x00008298 File Offset: 0x00006498
|
|
[Token(Token = "0x1700037A")]
|
|
[MonoTODO]
|
|
public static bool CheckCertificateRevocationList
|
|
{
|
|
[Token(Token = "0x6001166")]
|
|
[Address(RVA = "0x8AEBB0", Offset = "0x8ADBB0", VA = "0x1808AEBB0")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets or sets a value that indicates how long a Domain Name Service (DNS) resolution is considered valid.</summary>
|
|
/// <returns>The time-out value, in milliseconds. A value of -1 indicates an infinite time-out period. The default value is 120,000 milliseconds (two minutes).</returns>
|
|
// Token: 0x1700037B RID: 891
|
|
// (get) Token: 0x06001167 RID: 4455 RVA: 0x000082B0 File Offset: 0x000064B0
|
|
[Token(Token = "0x1700037B")]
|
|
public static int DnsRefreshTimeout
|
|
{
|
|
[Token(Token = "0x6001167")]
|
|
[Address(RVA = "0x8AEC10", Offset = "0x8ADC10", VA = "0x1808AEC10")]
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets or sets the security protocol used by the <see cref="T:System.Net.ServicePoint" /> objects managed by the <see cref="T:System.Net.ServicePointManager" /> object.</summary>
|
|
/// <returns>One of the values defined in the <see cref="T:System.Net.SecurityProtocolType" /> enumeration.</returns>
|
|
/// <exception cref="T:System.NotSupportedException">The value specified to set the property is not a valid <see cref="T:System.Net.SecurityProtocolType" /> enumeration value.</exception>
|
|
// Token: 0x1700037C RID: 892
|
|
// (get) Token: 0x06001168 RID: 4456 RVA: 0x000082C8 File Offset: 0x000064C8
|
|
[Token(Token = "0x1700037C")]
|
|
public static SecurityProtocolType SecurityProtocol
|
|
{
|
|
[Token(Token = "0x6001168")]
|
|
[Address(RVA = "0x8AEC70", Offset = "0x8ADC70", VA = "0x1808AEC70")]
|
|
get
|
|
{
|
|
return SecurityProtocolType.SystemDefault;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700037D RID: 893
|
|
// (get) Token: 0x06001169 RID: 4457 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x1700037D")]
|
|
internal static ServerCertValidationCallback ServerCertValidationCallback
|
|
{
|
|
[Token(Token = "0x6001169")]
|
|
[Address(RVA = "0x8AECD0", Offset = "0x8ADCD0", VA = "0x1808AECD0")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets or sets the callback to validate a server certificate.</summary>
|
|
/// <returns>A <see cref="T:System.Net.Security.RemoteCertificateValidationCallback" />. The default value is <see langword="null" />.</returns>
|
|
// Token: 0x1700037E RID: 894
|
|
// (set) Token: 0x0600116A RID: 4458 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x1700037E")]
|
|
public static RemoteCertificateValidationCallback ServerCertificateValidationCallback
|
|
{
|
|
[Token(Token = "0x600116A")]
|
|
[Address(RVA = "0x8AED30", Offset = "0x8ADD30", VA = "0x1808AED30")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Finds an existing <see cref="T:System.Net.ServicePoint" /> object or creates a new <see cref="T:System.Net.ServicePoint" /> object to manage communications with the specified <see cref="T:System.Uri" /> object.</summary>
|
|
/// <param name="address">A <see cref="T:System.Uri" /> object that contains the address of the Internet resource to contact.</param>
|
|
/// <param name="proxy">The proxy data for this request.</param>
|
|
/// <returns>The <see cref="T:System.Net.ServicePoint" /> object that manages communications for the request.</returns>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="address" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.InvalidOperationException">The maximum number of <see cref="T:System.Net.ServicePoint" /> objects defined in <see cref="P:System.Net.ServicePointManager.MaxServicePoints" /> has been reached.</exception>
|
|
// Token: 0x0600116B RID: 4459 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600116B")]
|
|
[Address(RVA = "0x8AE2A0", Offset = "0x8AD2A0", VA = "0x1808AE2A0")]
|
|
public static ServicePoint FindServicePoint(Uri address, IWebProxy proxy)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x04000A3A RID: 2618
|
|
[Token(Token = "0x4000A3A")]
|
|
private static HybridDictionary servicePoints;
|
|
|
|
// Token: 0x04000A3B RID: 2619
|
|
[Token(Token = "0x4000A3B")]
|
|
private static ICertificatePolicy policy;
|
|
|
|
// Token: 0x04000A3C RID: 2620
|
|
[Token(Token = "0x4000A3C")]
|
|
private static int defaultConnectionLimit;
|
|
|
|
// Token: 0x04000A3D RID: 2621
|
|
[Token(Token = "0x4000A3D")]
|
|
private static int maxServicePointIdleTime;
|
|
|
|
// Token: 0x04000A3E RID: 2622
|
|
[Token(Token = "0x4000A3E")]
|
|
private static int maxServicePoints;
|
|
|
|
// Token: 0x04000A3F RID: 2623
|
|
[Token(Token = "0x4000A3F")]
|
|
private static int dnsRefreshTimeout;
|
|
|
|
// Token: 0x04000A40 RID: 2624
|
|
[Token(Token = "0x4000A40")]
|
|
private static bool _checkCRL;
|
|
|
|
// Token: 0x04000A41 RID: 2625
|
|
[Token(Token = "0x4000A41")]
|
|
private static SecurityProtocolType _securityProtocol;
|
|
|
|
// Token: 0x04000A42 RID: 2626
|
|
[Token(Token = "0x4000A42")]
|
|
private static bool expectContinue;
|
|
|
|
// Token: 0x04000A43 RID: 2627
|
|
[Token(Token = "0x4000A43")]
|
|
private static bool useNagle;
|
|
|
|
// Token: 0x04000A44 RID: 2628
|
|
[Token(Token = "0x4000A44")]
|
|
private static ServerCertValidationCallback server_cert_cb;
|
|
|
|
// Token: 0x04000A45 RID: 2629
|
|
[Token(Token = "0x4000A45")]
|
|
private static bool tcp_keepalive;
|
|
|
|
// Token: 0x04000A46 RID: 2630
|
|
[Token(Token = "0x4000A46")]
|
|
private static int tcp_keepalive_time;
|
|
|
|
// Token: 0x04000A47 RID: 2631
|
|
[Token(Token = "0x4000A47")]
|
|
private static int tcp_keepalive_interval;
|
|
|
|
// Token: 0x0200029D RID: 669
|
|
[Token(Token = "0x200029D")]
|
|
private class SPKey
|
|
{
|
|
// Token: 0x0600116C RID: 4460 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x600116C")]
|
|
[Address(RVA = "0x8ADF90", Offset = "0x8ACF90", VA = "0x1808ADF90")]
|
|
public SPKey(Uri uri, Uri proxy, bool use_connect)
|
|
{
|
|
}
|
|
|
|
// Token: 0x1700037F RID: 895
|
|
// (get) Token: 0x0600116D RID: 4461 RVA: 0x000082E0 File Offset: 0x000064E0
|
|
[Token(Token = "0x1700037F")]
|
|
public bool UsesProxy
|
|
{
|
|
[Token(Token = "0x600116D")]
|
|
[Address(RVA = "0x8ADFE0", Offset = "0x8ACFE0", VA = "0x1808ADFE0")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600116E RID: 4462 RVA: 0x000082F8 File Offset: 0x000064F8
|
|
[Token(Token = "0x600116E")]
|
|
[Address(RVA = "0x8ADEB0", Offset = "0x8ACEB0", VA = "0x1808ADEB0", Slot = "2")]
|
|
public override int GetHashCode()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
// Token: 0x0600116F RID: 4463 RVA: 0x00008310 File Offset: 0x00006510
|
|
[Token(Token = "0x600116F")]
|
|
[Address(RVA = "0x8ADD90", Offset = "0x8ACD90", VA = "0x1808ADD90", Slot = "0")]
|
|
public override bool Equals(object obj)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
// Token: 0x04000A48 RID: 2632
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4000A48")]
|
|
private Uri uri;
|
|
|
|
// Token: 0x04000A49 RID: 2633
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4000A49")]
|
|
private Uri proxy;
|
|
|
|
// Token: 0x04000A4A RID: 2634
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4000A4A")]
|
|
private bool use_connect;
|
|
}
|
|
}
|
|
}
|