ASP.NET Core C# के साथ web apps और APIs बनाने के लिए आधुनिक, cross-platform, high-performance web framework है। एक केंद्रीय अवधारणा middleware pipeline है — components की एक configurable chain जो प्रत्येक HTTP request/response को process करती है, auth, logging, और routing जैसी cross-cutting चिंताओं को संभालते हुए।
एक न्यूनतम 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();
