ASP.NET Core është framework-u modern, cross-platform, me performancë të lartë për ndërtimin e aplikacioneve web dhe API-ve me C#. Një koncept qendror është pipeline-i middleware — një zinxhir i konfiguruar i komponentëve që secili përpunon kërkesën/përgjigjen HTTP, duke trajtuar preocupime të përpara përmes të gjitha shtresave si autentifikimi, logging-u, dhe routing-u.
Një API minimale 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();
