ASP.NET Core
Web APIs and apps on .NET.
ASP.NET Core is taught here in 14 lessons, running from Minimal APIs through to Real-time features with SignalR. Each lesson takes one topic, shows the working code, and links onward to the next, so the course can be read straight through in order.
| Track | .NET |
| Lessons | 14 |
| Level | Beginner to intermediate |
| Reading time | about 3 hours |
| Prerequisites | Helpful, but not required: .NET |
Lessons
- Minimal APIsBuild an HTTP API with route handlers, typed results and endpoint groups, and know when the minimal model is enough.
- Controllers, dependency injection and middlewareController-based APIs, the three service lifetimes and the middleware order that decides whether authentication runs before routing.
- Configuration and loggingHow the configuration stack layers sources, the options pattern for typed settings, and structured logging that is worth reading at 3am.
- Routing and model bindingRoute templates decide which endpoint runs, and the binding rules decide what it receives. Most "parameter is always null" bugs live in the second part.
- Model validation and Problem Details responsesData annotations, automatic 400 responses and a consistent error shape that a client can parse without guessing.
- Authentication and authorisationSchemes, policies and requirements, plus the difference between a user being logged in and a user being allowed to touch this row.
- Data access with Entity Framework CoreDbContext lifetime, migrations, loading strategies and the N+1 queries that turn a fast endpoint into a slow one.
- Razor Pages and MVC viewsPage models group a URL's handlers with its markup, and tag helpers remove the stringly-typed parts of a view.
- Static files, uploads and streaming responsesServing assets with the right cache headers, accepting uploads without buffering them into memory, and streaming large responses.
- CORS, JSON options and API conventionsCORS configured once and safely, JSON options set in one place, and output caching that respects the Vary header.
- Error handling, health checks and resilienceOne exception handler, health endpoints that mean something, and outbound calls with timeouts, retries and a circuit breaker.
- Testing ASP.NET Core applicationsWebApplicationFactory runs the real pipeline in memory, which catches the wiring bugs a unit test cannot see.
- Interactive UI with BlazorServer, WebAssembly and hybrid differ in where the code runs. That single decision drives latency, deployment and what a component can do.
- Real-time features with SignalRHubs, groups and reconnection, and the scaling decision that has to be made before the first user connects, not after.
More in .NET
FAQ
How long does the ASP.NET Core course take?
It has 14 lessons, about 3 hours of reading. Expect roughly twice that if you type out and run every example.
Do I need prior experience for ASP.NET Core?
Not strictly. It helps to have read .NET first, because some lessons build on it, but every lesson explains its own assumptions.
What should I read after ASP.NET Core?
Continue with LINQ (14 lessons), the next course in .NET.