4 references to TryGetValue
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)
111
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))