~/talk

Minimal APIs in ASP NET 6 0

Talkat Great International Developer Summit 2023 · 2023-04-25..04-28· [dotnet]
slides:none on file

Starts from a .NET 5 project and upgrades to .NET 7 while applying C# 10 features like file-scoped namespaces and implicit global usings, then folds Startup into top-level program.cs and adds minimal map get/post endpoints that return IResult. Builds a 46-line microservice with Swagger and health checks, demonstrates validation and custom IResult responses, and shows unit tests (xUnit, FluentAssertions, Moq, AutoMocker) plus in-memory integration tests that exercise the full request pipeline; the examples compile and the tests pass.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 4:57Building a minimal API
  3. 11:40Upgrading to ASP.NET 7
  4. 13:28File scope namespaces
  5. 15:58Global using statements
  6. 21:36Implicit using statements
  7. 24:29New startup experience
  8. 30:39Adding minimal APIs
  9. 37:48Testing strategies
  10. 47:16Organizing minimal APIs
  11. 52:56When to use minimal APIs
  12. 57:51Conclusion and resources
~/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.