12 writes to Timeout
Microsoft.AspNetCore.Http (2)
Timeouts\RequestTimeoutOptions.cs (1)
31
Timeout
= timeout
Timeouts\RequestTimeoutsIEndpointConventionBuilderExtensions.cs (1)
25
Timeout
= timeout
Microsoft.AspNetCore.Http.Microbenchmarks (3)
RequestTimeoutsMiddlewareBenchmark.cs (3)
34
Timeout
= TimeSpan.FromMilliseconds(200)
38
["policy1"] = new RequestTimeoutPolicy {
Timeout
= TimeSpan.FromMilliseconds(200)}
54
Timeout
= TimeSpan.FromMicroseconds(1)
Microsoft.AspNetCore.Http.Tests (7)
Timeouts\RequestTimeoutOptionsTests.cs (1)
26
Timeout
= TimeSpan.FromSeconds(47)
Timeouts\RequestTimeoutsMiddlewareTests.cs (6)
49
var endpoint = CreateEndpoint(new RequestTimeoutPolicy {
Timeout
= TimeSpan.FromSeconds(47) });
144
var endpoint = CreateEndpoint(new RequestTimeoutPolicy {
Timeout
= TimeSpan.FromSeconds(47) }, new RequestTimeoutAttribute("policy1"));
164
new RequestTimeoutPolicy {
Timeout
= TimeSpan.FromSeconds(47) },
289
Timeout
= TimeSpan.FromSeconds(defaultTimeout.Value),
300
Timeout
= TimeSpan.FromSeconds(1),
310
Timeout
= TimeSpan.FromSeconds(2),
6 references to Timeout
Microsoft.AspNetCore.Http (3)
Timeouts\RequestTimeoutsMiddleware.cs (3)
42
if (timeoutMetadata is null && policyMetadata?.
Timeout
is null && options.DefaultPolicy?.
Timeout
is null)
82
timeSpan ??= selectedPolicy?.
Timeout
;
Microsoft.AspNetCore.Http.Tests (3)
Timeouts\RequestTimeoutOptionsTests.cs (3)
17
Assert.Equal(TimeSpan.FromSeconds(47), policy.
Timeout
);
32
Assert.Equal(TimeSpan.FromSeconds(47), policy.
Timeout
);
42
Assert.Equal(TimeSpan.FromSeconds(47), options.Policies["policy1"].
Timeout
);