ASP.NET Basics for Experts
summary
Migrates a .NET 5-style Startup into .NET 6 top-level statements and minimal hosting, showing code on GitHub (Layla-P/BasicsForExperts-CodeEdition) and a live waffle demo that uses an Azure Function ingredients API. Implements managed clients with builder.Services.AddHttpClient and strongly typed clients, wraps them with Microsoft.Extensions.Http.Polly policies (retry, fallback, circuit breaker), and demonstrates a circuit breaker trips after 3 failures when the API returns 500. Organizes registrations via IServiceCollection extensions and uses user secrets for connection strings.
AI-written summary · about
chapters (21)
- 0:00Introduction
- 2:59Talk for ASP.NET experts
- 4:22Evolution .NET 5 to .NET 6
- 7:32Minimal API project
- 10:40Top-level statements
- 11:44Global usings
- 13:54Config and DI in .NET 6
- 16:43HTTP clients and DI issues
- 20:00Refactoring with dependency injection
- 24:20Extending IServiceCollection
- 27:31Private dependencies lifecycle
- 30:37Database extensions
- 33:31HTTP client policies
- 38:29Introducing Polly
- 40:16Circuit breakers and retries
- 47:31Testing resiliency
- 49:15Organizing minimal APIs
- 51:01POST requests
- 53:10Minimal APIs vs controllers
- 55:18Summary
- 56:19Q&A








