File tree Expand file tree Collapse file tree 7 files changed +9
-3
lines changed
problem-details-middleware
request-timeouts-middleware Expand file tree Collapse file tree 7 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 93
93
94
94
Use ` Microsoft.AspNetCore.Mvc.NewtonsoftJson ` to have MVC use ` Newtonsoft.Json ` instead of ` System.Text.Json ` .
95
95
96
- dotnet6
96
+ dotnet8
Original file line number Diff line number Diff line change 26
26
27
27
* [ Output Cache - 8] ( output-cache-8 )
28
28
This sample demonstrates on how to setup a cache policy that set an expiration time of 10 minutes.
29
+
30
+ dotnet8
Original file line number Diff line number Diff line change 4
4
5
5
This shows different results that ` HttpContext.Request.Path ` returns when handling different url requests.
6
6
7
- dotnet6
7
+ dotnet8
Original file line number Diff line number Diff line change
1
+ dotnet build path-string-1
Original file line number Diff line number Diff line change 12
12
13
13
This example shows how customize [ Problem Details] ( https://www.rfc-editor.org/rfc/rfc7807 ) by manipulating ` IProblemDetailsService ` .
14
14
15
+ dotnet8
Original file line number Diff line number Diff line change 21
21
</html>
22
22
""" , "text/html" ) ) ;
23
23
24
- app . MapGet ( "/problems" , async ( HttpContext context ) =>
24
+ app . MapGet ( "/problems" , ( HttpContext context ) =>
25
25
{
26
26
throw new ApplicationException ( "We got problems" ) ;
27
27
} ) ;
Original file line number Diff line number Diff line change 23
23
* [ Request Timeout] ( request-timeout-6 )
24
24
25
25
Use default timeout policy in an MVC controller.
26
+
27
+ dotnet8
You can’t perform that action at this time.
0 commit comments