moo

Minimal hosting making its way to ASP.NET Core with .NET 6.

Feather HTTP like minimal hosting is making its way to the aspnetcore framework with .NET 6. It will be more like express.js way. Check out the following example. This won’t be a breaking change, but this will be another style of doing so. 😀using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Http; var app = WebApplication.Create(args); app.MapGet(“/”, async http => { await http.Response.WriteAsync(“Hello World”); }); await app.RunAsync(); More details -Issue => https://ift.tt/3aplce0 => https://ift.tt/32xXrMm via /r/dotnet https://ift.tt/3n5fWBh

Categories: Uncategorized