ASP.NET Core is het moderne, cross-platform, high-performance webframework voor het bouwen van web apps en API's met C#. Een centraal concept is de middleware pipeline — een configureerbare keten van componenten die elk het HTTP-verzoek/antwoord verwerken en cross-cutting concerns zoals authenticatie, logging en routing afhandelen.
Een minimale ASP.NET Core API
builder = WebApplication.CreateBuilder();
builder.Services.AddScoped<IUserService, UserService>();
app = builder.Build();
app.UseHttpsRedirection();
app.UseAuthentication();
app.UseAuthorization();
app.MapGet(, ( id, IUserService svc) => svc.Get(id));
app.MapPost(, (User user, IUserService svc) => svc.Create(user));
app.Run();
