ASP.NET Core ni framework ya kisasa, ya mifumo mingi (cross-platform), ya utendaji wa juu ya wavuti kwa kujenga web apps na APIs na C#. Dhana kuu ni middleware pipeline — mnyororo unaoweza kuwekwa wa vipengele ambavyo kila kimoja huchakata HTTP request/response, kushughulikia cross-cutting concerns kama auth, logging, na routing.
API ndogo ya ASP.NET Core
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();
