ASP.NET Core API Docs

Core API Overview

Explore the most used classes, methods, and interfaces of ASP.NET Core. Click an item to view detailed documentation.

IApplicationBuilder

Defines methods for configuring an application's request pipeline.

Read more →

IServiceCollection

Provides a container for registering services for dependency injection.

Read more →

WebApplication

Convenient entry point for building minimal APIs.

Read more →

HttpContext

Encapsulates all HTTP-specific information about an individual HTTP request.

Read more →

ControllerBase

Base class for MVC controllers without view support.

Read more →

ILogger

Interface for logging within the framework.

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.