7 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.Resilience (1)
Resilience\HttpResilienceHttpRequestMessageExtensions.cs (1)
30
if (requestMessage.Options.
TryGetValue
(_resilienceContextKey, out var context))
Microsoft.Extensions.Http.Resilience.Tests (2)
Resilience\RequestMessageSnapshotTests.cs (2)
92
initialRequest.Options.
TryGetValue
(new HttpRequestOptionsKey<string>("C"), out var val).Should().BeTrue();
95
initialRequest.Options.
TryGetValue
(new HttpRequestOptionsKey<string>("D"), out val).Should().BeTrue();
System.Net.Http (2)
System\Net\Http\Metrics\HttpMetricsEnrichmentContext.cs (2)
84
if (!options.
TryGetValue
(s_optionsKeyForContext, out HttpMetricsEnrichmentContext? context))
107
request._options.
TryGetValue
(s_optionsKeyForContext, out HttpMetricsEnrichmentContext? context);