~/talk

Minimal APIs in ASP.NET 6.0

Talkat NDC Porto 2022 · 2022-04-25..04-29· [dotnet]
slides:none on file

Live demo upgrades a .NET 5 app to .NET 6 and shows concrete C# 10 changes: file-scoped namespaces and global/implicit usings, top‑level statements and the new WebApplication.CreateBuilder. Minimal APIs use app.MapGet/MapPost/MapPut, return typed bodies via Results (e.g. Results.BadRequest), and support DI into handler parameters. Builds a 46‑line microservice that serves JSON, Swagger and health checks, and demonstrates unit and in‑memory integration tests by exposing Program as a public partial for TestServer—no theory, just working code and measurable improvements.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 2:24Building a minimal API
  3. 5:33Overview of ASP.NET 5 app
  4. 8:40Upgrading to .NET 6
  5. 10:20C# 10 file-scoped namespaces
  6. 12:34Global usings and centralization
  7. 14:29Implicit usings
  8. 18:23Refactoring Program.cs
  9. 24:38Advanced minimal APIs
  10. 37:16Testing minimal APIs
  11. 47:28Microservices with minimal APIs
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.