Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetProxyRenewTicks()

long System.Net.Http.FailedProxyCache.GetProxyRenewTicks ( Uri uri)
inline

Definition at line 16 of file FailedProxyCache.cs.

17 {
18 Cleanup();
20 {
21 return 0L;
22 }
23 if (Environment.TickCount64 < value)
24 {
25 return value;
26 }
27 if (TryRenewProxy(uri, value))
28 {
29 return 0L;
30 }
32 {
33 return 0L;
34 }
35 return value;
36 }
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
readonly ConcurrentDictionary< Uri, long > _failedProxies
bool TryRenewProxy(Uri uri, long renewTicks)

References System.Net.Http.FailedProxyCache._failedProxies, System.Net.Http.FailedProxyCache.Cleanup(), System.L, System.Environment.TickCount64, System.Collections.Generic.Dictionary< TKey, TValue >.TryGetValue(), System.Net.Http.FailedProxyCache.TryRenewProxy(), and System.value.

Referenced by System.Net.Http.MultiProxy.ReadNext().