6 references to TryGetValue
Microsoft.AspNetCore.Components.WebAssembly (1)
Http\WebAssemblyHttpRequestMessageExtensions.cs (1)
120
if (requestMessage.Options.
TryGetValue
(FetchRequestOptionsKey, out var entry))
Microsoft.Extensions.Http.Diagnostics (1)
Http\HttpDiagnosticsHttpRequestMessageExtensions.cs (1)
44
_ = request.Options.
TryGetValue
(new HttpRequestOptionsKey<RequestMetadata>(TelemetryConstants.RequestMetadataKey), out var metadata);
Microsoft.Extensions.Http.Polly.Tests (2)
HttpRequestMessageExtensionsTest.cs (2)
76
request.Options.
TryGetValue
(
101
request.Options.
TryGetValue
(
Microsoft.Extensions.Http.Resilience (1)
Resilience\HttpResilienceHttpRequestMessageExtensions.cs (1)
30
if (requestMessage.Options.
TryGetValue
(_resilienceContextKey, out var context))
System.Net.Http (1)
System\Net\Http\Metrics\HttpMetricsEnrichmentContext.cs (1)
78
if (options.
TryGetValue
(s_optionsKeyForCallbacks, out List<Action<HttpMetricsEnrichmentContext>>? callbacks))