ASP.NET Core is the modern, cross-platform, high-performance web framework for building web apps and APIs with C#. A central concept is the middleware pipeline — a configurable chain of components that each process the HTTP request/response, handling cross-cutting concerns like auth, logging, and routing.
A minimal 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();
