File tree Expand file tree Collapse file tree 6 files changed +39
-5
lines changed Expand file tree Collapse file tree 6 files changed +39
-5
lines changed Original file line number Diff line number Diff line change 1
- # Samples for ASP.NET Core 6.0 (473 )
1
+ # Samples for ASP.NET Core 6.0 (474 )
2
2
3
- Samples for ASP.NET Core ** 8.0 Preview 4** is available [ here] ( /projects/.net8 ) (11 ).
3
+ Samples for ASP.NET Core ** 8.0 Preview 4** is available [ here] ( /projects/.net8 ) (12 ).
4
4
5
5
Samples for ASP.NET Core ** 7.0** is available [ here] ( /projects/.net7 ) (45).
6
6
Original file line number Diff line number Diff line change 1
- # ASP.NET 8.0 Preview 4 (11 )
1
+ # ASP.NET 8.0 Preview 4 (12 )
2
2
3
3
These samples require [ .NET 8.0 Preview 4] ( https://github.com/dotnet/installer#table ) .
4
4
@@ -45,4 +45,8 @@ These samples require [.NET 8.0 Preview 4](https://github.com/dotnet/installer#t
45
45
46
46
* [ Short Circuit] ( map-short-circuit )
47
47
48
- Use ` MapShortCircuit ` or ` .ShortCircuit() ` to efficiently respond to a request without going through a middleware pipeline run.
48
+ Use ` MapShortCircuit ` or ` .ShortCircuit() ` to efficiently respond to a request without going through a middleware pipeline run.
49
+
50
+ * [ SlimBuilder] ( slim-builder )
51
+
52
+ ` WebApplication.CreateSlimBuilder ` creates ` WebApplicationBuilder ` with minimal configuration defaults.
Original file line number Diff line number Diff line change @@ -6,4 +6,7 @@ dotnet build RazorComponentSix
6
6
dotnet build RazorComponentThree
7
7
dotnet build RazorComponentTwo
8
8
dotnet build request-timeout
9
- dotnet build map-short-circuit
9
+ dotnet build request-timeout-2
10
+ dotnet build request-timeout-3
11
+ dotnet build map-short-circuit
12
+ dotnet build slim-builder
Original file line number Diff line number Diff line change
1
+ var builder = WebApplication . CreateSlimBuilder ( ) ;
2
+ var app = builder . Build ( ) ;
3
+
4
+ app . MapGet ( "/" , ( ) => {
5
+ return Results . Content ( """
6
+ <html>
7
+ <body>
8
+ hello world with WebApplication.CreateSlimBuilder()
9
+ </body>
10
+ </html>
11
+ """ , "text/html" ) ;
12
+ } ) ;
13
+
14
+ app . Run ( ) ;
Original file line number Diff line number Diff line change
1
+ # WebApplication.CreateSlimBuilder
2
+
3
+ ` WebApplication.CreateSlimBuilder ` creates ` WebApplicationBuilder ` with minimal configuration defaults.
4
+
5
+
Original file line number Diff line number Diff line change
1
+ <Project Sdk =" Microsoft.NET.Sdk.Web" >
2
+ <PropertyGroup >
3
+ <TargetFramework >net8.0</TargetFramework >
4
+ <ImplicitUsings >true</ImplicitUsings >
5
+ <LangVersion >preview</LangVersion >
6
+ <PreviewFeatures >true</PreviewFeatures >
7
+ </PropertyGroup >
8
+ </Project >
You can’t perform that action at this time.
0 commit comments