77 lines
2.3 KiB
C#
77 lines
2.3 KiB
C#
using System;
|
|
|
|
namespace System.Net
|
|
{
|
|
/// <summary>Contains a global default proxy instance for all HTTP requests.</summary>
|
|
// Token: 0x02000225 RID: 549
|
|
[Obsolete("Use WebRequest.DefaultProxy instead")]
|
|
public class GlobalProxySelection
|
|
{
|
|
/// <summary>Gets or sets the global HTTP proxy.</summary>
|
|
/// <returns>An <see cref="T:System.Net.IWebProxy" /> that every call to <see cref="M:System.Net.HttpWebRequest.GetResponse" /> uses.</returns>
|
|
/// <exception cref="T:System.ArgumentNullException">The value specified for a set operation was null. </exception>
|
|
/// <exception cref="T:System.Security.SecurityException">The caller does not have permission for the requested operation. </exception>
|
|
// Token: 0x17000630 RID: 1584
|
|
// (get) Token: 0x06001319 RID: 4889 RVA: 0x0003A450 File Offset: 0x00038650
|
|
// (set) Token: 0x0600131A RID: 4890 RVA: 0x0003A458 File Offset: 0x00038658
|
|
public static IWebProxy Select
|
|
{
|
|
get
|
|
{
|
|
return WebRequest.DefaultWebProxy;
|
|
}
|
|
set
|
|
{
|
|
WebRequest.DefaultWebProxy = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Returns an empty proxy instance.</summary>
|
|
/// <returns>An <see cref="T:System.Net.IWebProxy" /> that contains no information.</returns>
|
|
// Token: 0x0600131B RID: 4891 RVA: 0x0003A460 File Offset: 0x00038660
|
|
public static IWebProxy GetEmptyWebProxy()
|
|
{
|
|
return new GlobalProxySelection.EmptyWebProxy();
|
|
}
|
|
|
|
// Token: 0x02000226 RID: 550
|
|
internal class EmptyWebProxy : IWebProxy
|
|
{
|
|
// Token: 0x0600131C RID: 4892 RVA: 0x0003A468 File Offset: 0x00038668
|
|
internal EmptyWebProxy()
|
|
{
|
|
}
|
|
|
|
// Token: 0x17000631 RID: 1585
|
|
// (get) Token: 0x0600131D RID: 4893 RVA: 0x0003A470 File Offset: 0x00038670
|
|
// (set) Token: 0x0600131E RID: 4894 RVA: 0x0003A478 File Offset: 0x00038678
|
|
public ICredentials Credentials
|
|
{
|
|
get
|
|
{
|
|
return this.credentials;
|
|
}
|
|
set
|
|
{
|
|
this.credentials = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600131F RID: 4895 RVA: 0x0003A484 File Offset: 0x00038684
|
|
public global::System.Uri GetProxy(global::System.Uri destination)
|
|
{
|
|
return destination;
|
|
}
|
|
|
|
// Token: 0x06001320 RID: 4896 RVA: 0x0003A488 File Offset: 0x00038688
|
|
public bool IsBypassed(global::System.Uri host)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x0400104A RID: 4170
|
|
private ICredentials credentials;
|
|
}
|
|
}
|
|
}
|