ASP.NET Core 10 APIs
Build real modern web endpoints in external .NET 10 projects and verify their domain rules in portable C# practice.
- Minimal routes and explicit binding
Separate route shape, scalar binding and application rules.
Endpoints and ownership · 25 min - Typed results and ProblemDetails
Make success, absence and invalid input distinct HTTP outcomes.
Endpoints and ownership · 25 min - Dependency injection lifetimes and scopes
Observe scoped identity without capturing it in a singleton.
Endpoints and ownership · 25 min - Middleware order and unwind
Distinguish inbound order, endpoint execution and outbound unwinding.
Endpoints and ownership · 25 min - Configuration and options validation
Reject an invalid operational setting before serving requests.
Endpoints and ownership · 25 min - Structured logs and request scopes
Preserve named observations rather than interpolating an opaque sentence.
Endpoints and ownership · 25 min - .NET 10 Minimal API validation
Use generated DataAnnotations validation before the handler executes.
Contracts and policies · 25 min - OpenAPI as an observable contract
Generate a real document and compare it with handler behavior.
Contracts and policies · 25 min - RequestAborted and cooperative work
Forward the request lifetime to work that can actually stop.
Contracts and policies · 25 min - Development identity and authorization policies
Observe 401 and 403 with an explicitly local teaching scheme.
Contracts and policies · 25 min - Rate limiting and an explicit rejection policy
Bound a named endpoint policy without claiming global abuse protection.
Contracts and policies · 25 min - Output caching and private-response boundaries
Choose a public variation key without caching personalized work.
Contracts and policies · 25 min - Liveness, readiness and real health endpoints
Separate a serving process from a dependency-readiness decision.
Operations and composition · 25 min - Activities, metrics and observable ownership
Instrument one bounded operation and inspect in-process listeners.
Operations and composition · 25 min - Source-generated JSON and AOT constraints
Compile an explicit serialization contract without claiming an AOT publish.
Operations and composition · 25 min - Capstone: a validated quote API
Compose binding, validation, scoped work, options, logs and typed outcomes.
Operations and composition · 25 min