20 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.Polly.Tests (5)
HttpRequestMessageExtensionsTest.cs (5)
21request.Options.Set(new HttpRequestOptionsKey<Context>(HttpRequestMessageExtensions.PolicyExecutionContextKey), expected); 52request.Options.Set(new HttpRequestOptionsKey<Context>(HttpRequestMessageExtensions.PolicyExecutionContextKey), null); 76request.Options.TryGetValue( 91request.Options.Set(new HttpRequestOptionsKey<Context>(HttpRequestMessageExtensions.PolicyExecutionContextKey), new Context(Guid.NewGuid().ToString())); 101request.Options.TryGetValue(
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");
System.Net.Http (2)
System\Net\Http\HttpRequestMessage.cs (1)
112public IDictionary<string, object?> Properties => Options;
System\Net\Http\Metrics\HttpMetricsEnrichmentContext.cs (1)
76HttpRequestOptions options = request.Options;