1 write to Policies
Microsoft.AspNetCore.Http.Microbenchmarks (1)
RequestTimeoutsMiddlewareBenchmark.cs (1)
36
Policies
=
7 references to Policies
Microsoft.AspNetCore.Http (2)
Timeouts\RequestTimeoutOptions.cs (1)
45
Policies
[policyName] = policy;
Timeouts\RequestTimeoutsMiddleware.cs (1)
67
if (options.
Policies
.TryGetValue(timeoutMetadata.PolicyName!, out var policy))
Microsoft.AspNetCore.Http.Tests (5)
Timeouts\RequestTimeoutOptionsTests.cs (3)
16
var policy = options.
Policies
["policy1"];
31
var policy = options.
Policies
["policy1"];
42
Assert.Equal(TimeSpan.FromSeconds(47), options.
Policies
["policy1"].Timeout);
Timeouts\RequestTimeoutsMiddlewareTests.cs (2)
298
options.
Policies
.Add("policy1", new RequestTimeoutPolicy
308
options.
Policies
.Add("policy2", new RequestTimeoutPolicy