Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SystemProxyInfo.cs
Go to the documentation of this file.
1
namespace
System.Net.Http
;
2
3
internal
static
class
SystemProxyInfo
4
{
5
private
static
readonly
Lazy<IWebProxy>
s_proxy
=
new
Lazy<IWebProxy>
(
ConstructSystemProxy
);
6
7
public
static
IWebProxy
Proxy
=>
s_proxy
.Value;
8
9
public
static
IWebProxy
ConstructSystemProxy
()
10
{
11
if
(!
HttpEnvironmentProxy
.
TryCreate
(out var proxy))
12
{
13
HttpWindowsProxy
.
TryCreate
(out proxy);
14
}
15
return
proxy ??
new
HttpNoProxy
();
16
}
17
}
System.Lazy
Definition
Lazy.cs:226
System.Net.Http.HttpEnvironmentProxy.TryCreate
static bool TryCreate([NotNullWhen(true)] out IWebProxy proxy)
Definition
HttpEnvironmentProxy.cs:154
System.Net.Http.HttpEnvironmentProxy
Definition
HttpEnvironmentProxy.cs:6
System.Net.Http.HttpNoProxy
Definition
HttpNoProxy.cs:4
System.Net.Http.HttpWindowsProxy.TryCreate
static bool TryCreate([NotNullWhen(true)] out IWebProxy proxy)
Definition
HttpWindowsProxy.cs:44
System.Net.Http.HttpWindowsProxy
Definition
HttpWindowsProxy.cs:11
System.Net.Http.SystemProxyInfo.s_proxy
static readonly Lazy< IWebProxy > s_proxy
Definition
SystemProxyInfo.cs:5
System.Net.Http.SystemProxyInfo.ConstructSystemProxy
static IWebProxy ConstructSystemProxy()
Definition
SystemProxyInfo.cs:9
System.Net.Http.SystemProxyInfo.Proxy
static IWebProxy Proxy
Definition
SystemProxyInfo.cs:7
System.Net.Http.SystemProxyInfo
Definition
SystemProxyInfo.cs:4
System.Net.IWebProxy
Definition
IWebProxy.cs:4
System.Net.Http
Definition
HttpClientJsonExtensions.cs:8
source
System.Net.Http
System.Net.Http
SystemProxyInfo.cs
Generated by
1.10.0