Skip to content

Commit 9713d1e

Browse files
committed
Put Request timeout middleware sample on its own folder
1 parent 324c089 commit 9713d1e

26 files changed

+74
-74
lines changed

README.md

Lines changed: 47 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -14,52 +14,53 @@ Greetings from Cairo, Egypt. You can [sponsor](https://github.com/sponsors/dodyg
1414

1515
## Sections
1616

17-
| Section | | |
18-
| --------------------------------------------------------------- | --- | ---------------------------------------------------------------------------- |
19-
| [Blazor Client Side (Web Assembly)](/projects/blazor/README.md) | 22 | .NET8 (WIP), Components, Data Binding |
20-
| [Blazor Server Side](/projects/blazor-ss) | 15 | Localization |
21-
| [Caching](/projects/caching) | 5 | |
22-
| [Configurations](/projects/configurations) | 10 | |
23-
| [CoreWCF](/projects/corewcf) | 1 | |
24-
| [Dependency Injection](/projects/dependency-injection/) | 4 | |
25-
| [Diagnostics](/projects/diagnostics) | 6 | |
26-
| [Endpoint Routing](/projects/endpoint-routing) | 32 | |
27-
| [Email](/projects/mailkit) | 2 | |
28-
| [Elsa Workflow](/projects/elsa) | 14 | .NET8 |
29-
| [Features](/projects/features) | 11 | |
30-
| [Generic Hosting](/projects/generic-host) | 9 | |
31-
| [gRPC](/projects/grpc) (including grpc-Web) | 12 | |
32-
| [Health Check](/projects/health-check) | 6 | |
33-
| [IHttpClientFactory](/projects/httpclientfactory) | 4 | |
34-
| [IHostedService](/projects/ihosted-service) | 2 | |
35-
| [Logging](/projects/logging) | 4 | |
36-
| [Localization and Globalization](/projects/localization) | 6 | |
37-
| [Middleware](/projects/middleware) | 14 | |
38-
| [Mini Apps](/projects/mini) | 2 | |
39-
| [Minimal API](/projects/minimal-api) | 36 | Routing, Parameter Bindings, etc |
40-
| [Minimal Hosting](/projects/minimal-hosting) | 23 | |
41-
| [MVC](/projects/mvc) | 47 | Localization, Routing, Razor Class Library, Tag Helpers, View Component, etc |
42-
| [Open Telemetry](/projects/open-telemetry/) | 3 | |
43-
| [Orchard Core](/projects/orchard-core) | 4 | |
44-
| [Path String (HttpContext.Request.Path)](/projects/path-string) | 1 | |
45-
| [Razor Pages](/projects/razor-pages) | 10 | TempData |
46-
| [Request](/projects/request) | 15 | Form, Cookies, Query String, Headers |
47-
| [Response](/projects/response) | 3 | |
48-
| [SignalR](/projects/signalr) | 1 | |
49-
| [Security](/projects/security) | 7 | |
50-
| [Single File Application](/projects/sfa) | 2 | |
51-
| [Static Files and File Provider](/projects/file-provider) | 10 | |
52-
| [System.Text.Json](/projects/json) | 22 | |
53-
| [Syndications](/projects/syndications) | 3 | |
54-
| [Testing](/projects/testing) | 1 | |
55-
| [URL Redirect/Rewrite](/projects/rewrite) | 6 | |
56-
| [Uri Helper](/projects/uri-helper) | 5 | |
57-
| [Windows Service](/projects/windows-service) | 1 | |
58-
| [Web Sockets](/projects/web-sockets) | 6 | |
59-
| [Web Utilities](/projects/web-utilities) | 3 | |
60-
| [Orleans](/projects/orleans) | 5 | .NET.8 |
61-
| [Xml](/projects/xml) | 1 | |
62-
| [YARP](/projects/yarp) | 1 | |
17+
| Section | | |
18+
| ------------------------------------------------------------------- | --- | ---------------------------------------------------------------------------- |
19+
| [Blazor Client Side (Web Assembly)](/projects/blazor/README.md) | 22 | .NET8 (WIP), Components, Data Binding |
20+
| [Blazor Server Side](/projects/blazor-ss) | 15 | Localization |
21+
| [Caching](/projects/caching) | 5 | |
22+
| [Configurations](/projects/configurations) | 10 | |
23+
| [CoreWCF](/projects/corewcf) | 1 | |
24+
| [Dependency Injection](/projects/dependency-injection/) | 4 | |
25+
| [Diagnostics](/projects/diagnostics) | 6 | |
26+
| [Endpoint Routing](/projects/endpoint-routing) | 32 | |
27+
| [Email](/projects/mailkit) | 2 | |
28+
| [Elsa Workflow](/projects/elsa) | 14 | .NET8 |
29+
| [Features](/projects/features) | 11 | |
30+
| [Generic Hosting](/projects/generic-host) | 9 | |
31+
| [gRPC](/projects/grpc) (including grpc-Web) | 12 | |
32+
| [Health Check](/projects/health-check) | 6 | |
33+
| [IHttpClientFactory](/projects/httpclientfactory) | 4 | |
34+
| [IHostedService](/projects/ihosted-service) | 2 | |
35+
| [Logging](/projects/logging) | 4 | |
36+
| [Localization and Globalization](/projects/localization) | 6 | |
37+
| [Middleware](/projects/middleware) | 14 | |
38+
| [Mini Apps](/projects/mini) | 2 | |
39+
| [Minimal API](/projects/minimal-api) | 36 | Routing, Parameter Bindings, etc |
40+
| [Minimal Hosting](/projects/minimal-hosting) | 23 | |
41+
| [MVC](/projects/mvc) | 47 | Localization, Routing, Razor Class Library, Tag Helpers, View Component, etc |
42+
| [Open Telemetry](/projects/open-telemetry/) | 3 | |
43+
| [Orchard Core](/projects/orchard-core) | 4 | |
44+
| [Path String (HttpContext.Request.Path)](/projects/path-string) | 1 | |
45+
| [Razor Pages](/projects/razor-pages) | 10 | TempData |
46+
| [Request](/projects/request) | 15 | Form, Cookies, Query String, Headers |
47+
| [Request Timeouts Middleware](/projets/request-timeouts-middleware) | 6 | |
48+
| [Response](/projects/response) | 3 | |
49+
| [SignalR](/projects/signalr) | 1 | |
50+
| [Security](/projects/security) | 7 | |
51+
| [Single File Application](/projects/sfa) | 2 | |
52+
| [Static Files and File Provider](/projects/file-provider) | 10 | |
53+
| [System.Text.Json](/projects/json) | 22 | |
54+
| [Syndications](/projects/syndications) | 3 | |
55+
| [Testing](/projects/testing) | 1 | |
56+
| [URL Redirect/Rewrite](/projects/rewrite) | 6 | |
57+
| [Uri Helper](/projects/uri-helper) | 5 | |
58+
| [Windows Service](/projects/windows-service) | 1 | |
59+
| [Web Sockets](/projects/web-sockets) | 6 | |
60+
| [Web Utilities](/projects/web-utilities) | 3 | |
61+
| [Orleans](/projects/orleans) | 5 | .NET.8 |
62+
| [Xml](/projects/xml) | 1 | |
63+
| [YARP](/projects/yarp) | 1 | |
6364

6465
For Data Access samples, go to the excellent [ORM Cookbook](https://github.com/Grauenwolf/DotNet-ORM-Cookbook). .NET team also has [a sample repository](https://github.com/dotnet/samples).
6566

projects/.net8/README.md

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ASP.NET 8.0 (42)
1+
# ASP.NET 8.0
22

33
## Misc New Features
44

@@ -119,32 +119,6 @@
119119

120120
This sample demonstrates the ability to use `[FromForm]` binding in Minimal API.
121121

122-
## Request Timeout
123-
124-
* [Request Timeout](request-timeout)
125-
126-
This sample demonstrates how to configure a request timeout in Minimal API.
127-
128-
* [Request Timeout Policy](request-timeout-2)
129-
130-
Trigger exception on a timeout using `HttpContext.RequestAborted.ThrowIfCancellationRequested()` on a timeout that was specified using a named policy in Minimal API.
131-
132-
* [Request Timeout Policy](request-timeout-3)
133-
134-
Trigger exception on a timeout using `HttpContext.RequestAborted.ThrowIfCancellationRequested()` on a default timeout policy in Minimal API.
135-
136-
* [Request Timeout](request-timeout-4)
137-
138-
Use `RequestTimeout` attribute in an MVC controller to specify when timeout is trigerred.
139-
140-
* [Request Timeout](request-timeout-5)
141-
142-
Use `RequestTimeout` attribute in an MVC controller to use a named policy.
143-
144-
* [Request Timeout](request-timeout-6)
145-
146-
Use default timeout policy in an MVC controller.
147-
148122
## IExceptionHandler
149123

150124
* [IExceptionHandler](iexception-handler)

projects/blazor/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Blazor (22)
1+
# Blazor Wasm (22)
22

33
You will find samples for Blazor, a .NET application framework for Web Assembly here. To run the sample, simply type `dotnet watch run` at the folder of each project. Make sure you pay attention which port Kestrel is running on.
44

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Request Timeout
2+
3+
* [Request Timeout](request-timeout)
4+
5+
This sample demonstrates how to configure a request timeout in Minimal API.
6+
7+
* [Request Timeout Policy](request-timeout-2)
8+
9+
Trigger exception on a timeout using `HttpContext.RequestAborted.ThrowIfCancellationRequested()` on a timeout that was specified using a named policy in Minimal API.
10+
11+
* [Request Timeout Policy](request-timeout-3)
12+
13+
Trigger exception on a timeout using `HttpContext.RequestAborted.ThrowIfCancellationRequested()` on a default timeout policy in Minimal API.
14+
15+
* [Request Timeout](request-timeout-4)
16+
17+
Use `RequestTimeout` attribute in an MVC controller to specify when timeout is trigerred.
18+
19+
* [Request Timeout](request-timeout-5)
20+
21+
Use `RequestTimeout` attribute in an MVC controller to use a named policy.
22+
23+
* [Request Timeout](request-timeout-6)
24+
25+
Use default timeout policy in an MVC controller.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)