224 lines
7.9 KiB
C#
224 lines
7.9 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: 0x020002A0 RID: 672
|
|
[Token(Token = "0x20002A0")]
|
|
public class ServicePointManager
|
|
{
|
|
// Token: 0x0600117B RID: 4475 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600117B")]
|
|
[Address(RVA = "0x2233EB0", Offset = "0x2232CB0", VA = "0x182233EB0")]
|
|
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: 0x1700037E RID: 894
|
|
// (get) Token: 0x0600117C RID: 4476 RVA: 0x000082B0 File Offset: 0x000064B0
|
|
[Token(Token = "0x1700037E")]
|
|
[MonoTODO]
|
|
public static bool CheckCertificateRevocationList
|
|
{
|
|
[Token(Token = "0x600117C")]
|
|
[Address(RVA = "0x2233FF0", Offset = "0x2232DF0", VA = "0x182233FF0")]
|
|
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: 0x1700037F RID: 895
|
|
// (get) Token: 0x0600117D RID: 4477 RVA: 0x000082C8 File Offset: 0x000064C8
|
|
[Token(Token = "0x1700037F")]
|
|
public static int DnsRefreshTimeout
|
|
{
|
|
[Token(Token = "0x600117D")]
|
|
[Address(RVA = "0x2234050", Offset = "0x2232E50", VA = "0x182234050")]
|
|
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: 0x17000380 RID: 896
|
|
// (get) Token: 0x0600117E RID: 4478 RVA: 0x000082E0 File Offset: 0x000064E0
|
|
[Token(Token = "0x17000380")]
|
|
public static SecurityProtocolType SecurityProtocol
|
|
{
|
|
[Token(Token = "0x600117E")]
|
|
[Address(RVA = "0x22340B0", Offset = "0x2232EB0", VA = "0x1822340B0")]
|
|
get
|
|
{
|
|
return SecurityProtocolType.SystemDefault;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000381 RID: 897
|
|
// (get) Token: 0x0600117F RID: 4479 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x17000381")]
|
|
internal static ServerCertValidationCallback ServerCertValidationCallback
|
|
{
|
|
[Token(Token = "0x600117F")]
|
|
[Address(RVA = "0x2234110", Offset = "0x2232F10", VA = "0x182234110")]
|
|
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: 0x17000382 RID: 898
|
|
// (set) Token: 0x06001180 RID: 4480 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x17000382")]
|
|
public static RemoteCertificateValidationCallback ServerCertificateValidationCallback
|
|
{
|
|
[Token(Token = "0x6001180")]
|
|
[Address(RVA = "0x2234170", Offset = "0x2232F70", VA = "0x182234170")]
|
|
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: 0x06001181 RID: 4481 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001181")]
|
|
[Address(RVA = "0x22336E0", Offset = "0x22324E0", VA = "0x1822336E0")]
|
|
public static ServicePoint FindServicePoint(Uri address, IWebProxy proxy)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x04000A47 RID: 2631
|
|
[Token(Token = "0x4000A47")]
|
|
private static HybridDictionary servicePoints;
|
|
|
|
// Token: 0x04000A48 RID: 2632
|
|
[Token(Token = "0x4000A48")]
|
|
private static ICertificatePolicy policy;
|
|
|
|
// Token: 0x04000A49 RID: 2633
|
|
[Token(Token = "0x4000A49")]
|
|
private static int defaultConnectionLimit;
|
|
|
|
// Token: 0x04000A4A RID: 2634
|
|
[Token(Token = "0x4000A4A")]
|
|
private static int maxServicePointIdleTime;
|
|
|
|
// Token: 0x04000A4B RID: 2635
|
|
[Token(Token = "0x4000A4B")]
|
|
private static int maxServicePoints;
|
|
|
|
// Token: 0x04000A4C RID: 2636
|
|
[Token(Token = "0x4000A4C")]
|
|
private static int dnsRefreshTimeout;
|
|
|
|
// Token: 0x04000A4D RID: 2637
|
|
[Token(Token = "0x4000A4D")]
|
|
private static bool _checkCRL;
|
|
|
|
// Token: 0x04000A4E RID: 2638
|
|
[Token(Token = "0x4000A4E")]
|
|
private static SecurityProtocolType _securityProtocol;
|
|
|
|
// Token: 0x04000A4F RID: 2639
|
|
[Token(Token = "0x4000A4F")]
|
|
private static bool expectContinue;
|
|
|
|
// Token: 0x04000A50 RID: 2640
|
|
[Token(Token = "0x4000A50")]
|
|
private static bool useNagle;
|
|
|
|
// Token: 0x04000A51 RID: 2641
|
|
[Token(Token = "0x4000A51")]
|
|
private static ServerCertValidationCallback server_cert_cb;
|
|
|
|
// Token: 0x04000A52 RID: 2642
|
|
[Token(Token = "0x4000A52")]
|
|
private static bool tcp_keepalive;
|
|
|
|
// Token: 0x04000A53 RID: 2643
|
|
[Token(Token = "0x4000A53")]
|
|
private static int tcp_keepalive_time;
|
|
|
|
// Token: 0x04000A54 RID: 2644
|
|
[Token(Token = "0x4000A54")]
|
|
private static int tcp_keepalive_interval;
|
|
|
|
// Token: 0x020002A1 RID: 673
|
|
[Token(Token = "0x20002A1")]
|
|
private class SPKey
|
|
{
|
|
// Token: 0x06001182 RID: 4482 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6001182")]
|
|
[Address(RVA = "0xC3A9E0", Offset = "0xC397E0", VA = "0x180C3A9E0")]
|
|
public SPKey(Uri uri, Uri proxy, bool use_connect)
|
|
{
|
|
}
|
|
|
|
// Token: 0x17000383 RID: 899
|
|
// (get) Token: 0x06001183 RID: 4483 RVA: 0x000082F8 File Offset: 0x000064F8
|
|
[Token(Token = "0x17000383")]
|
|
public bool UsesProxy
|
|
{
|
|
[Token(Token = "0x6001183")]
|
|
[Address(RVA = "0x2233420", Offset = "0x2232220", VA = "0x182233420")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001184 RID: 4484 RVA: 0x00008310 File Offset: 0x00006510
|
|
[Token(Token = "0x6001184")]
|
|
[Address(RVA = "0x2233340", Offset = "0x2232140", VA = "0x182233340", Slot = "2")]
|
|
public override int GetHashCode()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
// Token: 0x06001185 RID: 4485 RVA: 0x00008328 File Offset: 0x00006528
|
|
[Token(Token = "0x6001185")]
|
|
[Address(RVA = "0x2233220", Offset = "0x2232020", VA = "0x182233220", Slot = "0")]
|
|
public override bool Equals(object obj)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
// Token: 0x04000A55 RID: 2645
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4000A55")]
|
|
private Uri uri;
|
|
|
|
// Token: 0x04000A56 RID: 2646
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4000A56")]
|
|
private Uri proxy;
|
|
|
|
// Token: 0x04000A57 RID: 2647
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4000A57")]
|
|
private bool use_connect;
|
|
}
|
|
}
|
|
}
|