Update timeouts.md (#31217)
parent
ae56b26380
commit
489d997fb2
|
@ -36,7 +36,7 @@ Adding the middleware to the app doesn't automatically start triggering timeouts
|
|||
|
||||
## Configure one endpoint or page
|
||||
|
||||
For minimal API apps, configure an endpoint to time out by calling <xref:Microsoft.AspNetCore.Builder.RequestTimeoutsIEndpointConventionBuilderExtensions.WithRequestTimeout%2A>, or by applying the [`[RequestTimeout]`](xref:Microsoft.AspNetCore.Http.Timeouts.RequestTimeoutAttribute) attribute, as shown in the following example:
|
||||
For minimal API apps, configure an endpoint to timeout by calling <xref:Microsoft.AspNetCore.Builder.RequestTimeoutsIEndpointConventionBuilderExtensions.WithRequestTimeout%2A>, or by applying the [`[RequestTimeout]`](xref:Microsoft.AspNetCore.Http.Timeouts.RequestTimeoutAttribute) attribute, as shown in the following example:
|
||||
|
||||
:::code language="csharp" source="~/performance/timeouts/samples/8.x/Program.cs" id="oneendpoint" highlight="20,24":::
|
||||
|
||||
|
|
Loading…
Reference in New Issue