11 instantiations of RequestTimeoutAttribute
Microsoft.AspNetCore.Http (1)
Timeouts\RequestTimeoutsIEndpointConventionBuilderExtensions.cs (1)
37
builder.Add(b => b.Metadata.Add(new
RequestTimeoutAttribute
(policyName)));
Microsoft.AspNetCore.Http.Microbenchmarks (2)
RequestTimeoutsMiddlewareBenchmark.cs (2)
90
new EndpointMetadataCollection(new
RequestTimeoutAttribute
(200)),
101
new EndpointMetadataCollection(new
RequestTimeoutAttribute
("policy1")),
Microsoft.AspNetCore.Http.Tests (8)
Timeouts\RequestTimeoutsMiddlewareTests.cs (8)
64
var endpoint = CreateEndpoint(new
RequestTimeoutAttribute
("policy2"));
79
var endpoint = CreateEndpoint(new
RequestTimeoutAttribute
(3000));
112
var endpoint = CreateEndpoint(new
RequestTimeoutAttribute
("policy1"));
128
var endpoint = CreateEndpoint(new
RequestTimeoutAttribute
(3000));
144
var endpoint = CreateEndpoint(new RequestTimeoutPolicy { Timeout = TimeSpan.FromSeconds(47) }, new
RequestTimeoutAttribute
("policy1"));
165
new
RequestTimeoutAttribute
("policy1"));
180
var endpoint = CreateEndpoint(new
RequestTimeoutAttribute
("policy47"));
228
var endpoint = CreateEndpoint(new
RequestTimeoutAttribute
("policy1"));
5 references to RequestTimeoutAttribute
Microsoft.AspNetCore.Http (5)
Timeouts\RequestTimeoutAttribute.cs (2)
27
/// Creates a new instance of <see cref="
RequestTimeoutAttribute
"/> using the specified timeout.
36
/// Creates a new instance of <see cref="
RequestTimeoutAttribute
"/> using the specified policy.
Timeouts\RequestTimeoutsIApplicationBuilderExtensions.cs (1)
17
/// the <see cref="
RequestTimeoutAttribute
"/> on endpoints, or using the WithRequestTimeout routing extensions.
Timeouts\RequestTimeoutsMiddleware.cs (2)
37
var
timeoutMetadata = endpoint?.Metadata.GetMetadata<
RequestTimeoutAttribute
>();