Core API Overview
Explore the most used classes, methods, and interfaces of ASP.NET Core. Click an item to view detailed documentation.
IServiceCollection
Provides a container for registering services for dependency injection.
Read more →HttpContext
Encapsulates all HTTP-specific information about an individual HTTP request.
Read more →Getting Started Example
using Microsoft.AspNetCore.Builder; using Microsoft.Extensions.DependencyInjection; var builder = WebApplication.CreateBuilder(args); builder.Services.AddControllers(); var app = builder.Build(); app.MapControllers(); app.Run();
Copy the code above into Program.cs
to spin up a basic ASP.NET Core app.