19 references to Options
Microsoft.AspNetCore.Components.WebAssembly (4)
Http\WebAssemblyHttpRequestMessageExtensions.cs (4)
120if (requestMessage.Options.TryGetValue(FetchRequestOptionsKey, out var entry)) 127requestMessage.Options.Set(FetchRequestOptionsKey, fetchOptions); 150requestMessage.Options.Set(WebAssemblyEnableStreamingRequestKey, streamingEnabled); 169requestMessage.Options.Set(WebAssemblyEnableStreamingResponseKey, streamingEnabled);
Microsoft.AspNetCore.Mvc.Testing (2)
Handlers\RedirectHandler.cs (2)
160foreach (var property in response.RequestMessage.Options) 163redirect.Options.Set(key, property.Value);
Microsoft.Extensions.Http.Diagnostics (2)
Http\HttpDiagnosticsHttpRequestMessageExtensions.cs (2)
28_ = request.Options.TryAdd(TelemetryConstants.RequestMetadataKey, metadata); 44_ = request.Options.TryGetValue(new HttpRequestOptionsKey<RequestMetadata>(TelemetryConstants.RequestMetadataKey), out var metadata);
Microsoft.Extensions.Http.Resilience (4)
Internal\RequestMessageSnapshot.cs (2)
43_ = clone.Options.TryAdd(prop.Key, prop.Value); 91_properties.AddRange(request.Options);
Resilience\HttpResilienceHttpRequestMessageExtensions.cs (2)
30if (requestMessage.Options.TryGetValue(_resilienceContextKey, out var context)) 53requestMessage.Options.Set(_resilienceContextKey, resilienceContext);
Microsoft.Extensions.Http.Resilience.PerformanceTests (1)
HttpResilienceBenchmark.cs (1)
28request.Options.Set(new HttpRequestOptionsKey<string>("dummy"), "dummy");
Microsoft.Extensions.Http.Resilience.Tests (4)
Resilience\RequestMessageSnapshotTests.cs (4)
70initialRequest.Options.Set(new HttpRequestOptionsKey<string>("C"), "C"); 71initialRequest.Options.Set(new HttpRequestOptionsKey<string>("D"), "D"); 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\HttpRequestMessage.cs (1)
112public IDictionary<string, object?> Properties => Options;
System\Net\Http\Metrics\HttpMetricsEnrichmentContext.cs (1)
80HttpRequestOptions options = request.Options;