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

◆ SendAsyncCore()

ValueTask< HttpResponseMessage > System.Net.Http.HttpConnectionPoolManager.SendAsyncCore ( HttpRequestMessage request,
Uri proxyUri,
bool async,
bool doRequestAuth,
bool isProxyConnect,
CancellationToken cancellationToken )
inline

Definition at line 267 of file HttpConnectionPoolManager.cs.

268 {
270 HttpConnectionPool value;
272 {
273 value = new HttpConnectionPool(this, connectionKey.Kind, connectionKey.Host, connectionKey.Port, connectionKey.SslHostName, connectionKey.ProxyUri);
274 if (_cleaningTimer == null)
275 {
276 break;
277 }
279 {
280 continue;
281 }
282 lock (SyncObj)
283 {
284 if (!_timerIsRunning)
285 {
287 }
288 }
289 break;
290 }
292 }
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
bool TryAdd(TKey key, TValue value)
HttpConnectionKey GetConnectionKey(HttpRequestMessage request, Uri proxyUri, bool isProxyConnect)
readonly ConcurrentDictionary< HttpConnectionKey, HttpConnectionPool > _pools

References System.Net.Http.HttpConnectionPoolManager._cleaningTimer, System.Net.Http.HttpConnectionPoolManager._cleanPoolTimeout, System.Net.Http.HttpConnectionPoolManager._pools, System.Net.Http.HttpConnectionPoolManager._timerIsRunning, System.cancellationToken, System.Net.Http.HttpConnectionPoolManager.GetConnectionKey(), System.Net.Http.HttpConnectionPoolManager.SetCleaningTimer(), System.Net.Http.HttpConnectionPoolManager.SyncObj, System.Collections.Generic.Dictionary< TKey, TValue >.TryAdd(), System.Collections.Generic.Dictionary< TKey, TValue >.TryGetValue(), and System.value.

Referenced by System.Net.Http.HttpConnectionPoolManager.SendAsync(), System.Net.Http.HttpConnectionPoolManager.SendAsyncMultiProxy(), and System.Net.Http.HttpConnectionPoolManager.SendProxyConnectAsync().