11 references to new
Microsoft.AspNetCore.Components.WebAssembly (3)
Http\WebAssemblyHttpRequestMessageExtensions.cs (3)
13
private static readonly HttpRequestOptionsKey<IDictionary<string, object>> FetchRequestOptionsKey = new
HttpRequestOptionsKey
<IDictionary<string, object>>("WebAssemblyFetchOptions");
14
private static readonly HttpRequestOptionsKey<bool> WebAssemblyEnableStreamingRequestKey = new
HttpRequestOptionsKey
<bool>("WebAssemblyEnableStreamingRequest");
15
private static readonly HttpRequestOptionsKey<bool> WebAssemblyEnableStreamingResponseKey = new
HttpRequestOptionsKey
<bool>("WebAssemblyEnableStreamingResponse");
Microsoft.AspNetCore.Mvc.Testing (1)
Handlers\RedirectHandler.cs (1)
162
var key = new
HttpRequestOptionsKey
<object?>(property.Key);
Microsoft.Extensions.Http.Polly.Tests (5)
HttpRequestMessageExtensionsTest.cs (5)
21
request.Options.Set(new
HttpRequestOptionsKey
<Context>(HttpRequestMessageExtensions.PolicyExecutionContextKey), expected);
52
request.Options.Set(new
HttpRequestOptionsKey
<Context>(HttpRequestMessageExtensions.PolicyExecutionContextKey), null);
77
new
HttpRequestOptionsKey
<Context>(HttpRequestMessageExtensions.PolicyExecutionContextKey),
91
request.Options.Set(new
HttpRequestOptionsKey
<Context>(HttpRequestMessageExtensions.PolicyExecutionContextKey), new Context(Guid.NewGuid().ToString()));
102
new
HttpRequestOptionsKey
<Context>(HttpRequestMessageExtensions.PolicyExecutionContextKey),
Microsoft.Extensions.Http.Resilience.PerformanceTests (1)
HttpResilienceBenchmark.cs (1)
28
request.Options.Set(new
HttpRequestOptionsKey
<string>("dummy"), "dummy");
System.Net.Http (1)
System\Net\Http\Metrics\HttpMetricsEnrichmentContext.cs (1)
26
private static readonly HttpRequestOptionsKey<HttpMetricsEnrichmentContext> s_optionsKeyForContext =
new
(nameof(HttpMetricsEnrichmentContext));