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