7 references to TryGetValue
Microsoft.AspNetCore.Components.WebAssembly (1)
Http\WebAssemblyHttpRequestMessageExtensions.cs (1)
120
if (requestMessage.Options.
TryGetValue
(FetchRequestOptionsKey, out var entry))
Microsoft.AspNetCore.Http.Connections.Client (2)
Internal\AccessTokenHttpMessageHandler.cs (2)
25
var isNegotiate = request.Options.
TryGetValue
(new HttpRequestOptionsKey<bool>("IsNegotiate"), out var negotiateValue) && negotiateValue;
26
var isRefresh = request.Options.
TryGetValue
(new HttpRequestOptionsKey<bool>("IsRefresh"), out var refreshValue) && refreshValue;
Microsoft.Extensions.Http.Diagnostics (1)
Http\HttpDiagnosticsHttpRequestMessageExtensions.cs (1)
44
_ = request.Options.
TryGetValue
(new HttpRequestOptionsKey<RequestMetadata>(TelemetryConstants.RequestMetadataKey), out var metadata);
NuGet.Protocol (2)
HttpSource\HttpRequestMessageExtensions.cs (1)
135
if (request.Options.
TryGetValue
<T>(new HttpRequestOptionsKey<T>(key), out T? result))
HttpSource\HttpSourceAuthenticationHandler.cs (1)
109
if (request.Options.
TryGetValue
(
System.Net.Http (1)
System\Net\Http\Metrics\HttpMetricsEnrichmentContext.cs (1)
78
if (options.
TryGetValue
(s_optionsKeyForCallbacks, out List<Action<HttpMetricsEnrichmentContext>>? callbacks))