Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
GlobalProxySelection.cs
Go to the documentation of this file.
2
3namespace System.Net;
4
5[Obsolete("GlobalProxySelection has been deprecated. Use WebRequest.DefaultWebProxy instead to access and set the global default proxy. Use 'null' instead of GetEmptyWebProxy.")]
7{
8 private sealed class EmptyWebProxy : IWebProxy
9 {
11
13 {
14 get
15 {
16 return _credentials;
17 }
18 set
19 {
21 }
22 }
23
24 public Uri GetProxy(Uri uri)
25 {
26 return uri;
27 }
28
29 public bool IsBypassed(Uri uri)
30 {
31 return true;
32 }
33 }
34
35 public static IWebProxy Select
36 {
37 get
38 {
39 return WebRequest.DefaultWebProxy ?? GetEmptyWebProxy();
40 }
41 [param: AllowNull]
42 set
43 {
44 WebRequest.DefaultWebProxy = value;
45 }
46 }
47
49 {
50 return new EmptyWebProxy();
51 }
52}