9 references to TryGetValue
Microsoft.AspNetCore.Components.WebAssembly (1)
Http\WebAssemblyHttpRequestMessageExtensions.cs (1)
120if (requestMessage.Options.TryGetValue(FetchRequestOptionsKey, out var entry))
Microsoft.AspNetCore.Http.Connections.Client (1)
Internal\AccessTokenHttpMessageHandler.cs (1)
28request.Options.TryGetValue(new HttpRequestOptionsKey<bool>("IsNegotiate"), out var value) && value == true
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)
76request.Options.TryGetValue( 101request.Options.TryGetValue(
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 (1)
System\Net\Http\Metrics\HttpMetricsEnrichmentContext.cs (1)
78if (options.TryGetValue(s_optionsKeyForCallbacks, out List<Action<HttpMetricsEnrichmentContext>>? callbacks))