Combining source-generated Minimal API registration with constructor injection
Source generation can register injectable Minimal API endpoint classes and map their routes without runtime scanning or manual composition.
Source generation can register injectable Minimal API endpoint classes and map their routes without runtime scanning or manual composition.
Constructor injection keeps Minimal API handler tests focused as endpoint dependencies grow.
Source generation can remove repetitive service-module registration from ASP.NET Core applications without relying on runtime reflection.
Most ASP.NET Core projects generate OpenAPI from code. This post explores the opposite approach: treating the spec as the source of truth for Minimal APIs.
AWS SSO is a great alternative to static access keys, but expired sessions can break local Aspire startup in confusing ways. Let’s automate renewing a session.
gRPC services and clients rely on protobuf contracts to align on the shape of requests and responses. NuGet can make sharing these contracts more convenient.
Manual registration of Minimal API endpoints can clutter your ASP.NET Core apps. This article explores how to automate it for a cleaner setup.
Bypassing JWT validation in .NET integration tests with custom tokens and a test-only authentication setup.
Testcontainers and Respawn can make testing ASP.NET Core endpoints using Entity Framework Core easier and more reliable.
Learn how to use IAM roles to secure AWS applications in development with ASP.NET Core. Enhance security with limited permissions and IAM roles.
The WebApplicationFactory can be used to create an instance of an ASP.NET Core application hosted within the test process and execute all the tests against it. We will use it to test GRPC services.
The WebApplicationFactory can be used to create an instance of an ASP.NET Core application hosted within the test process and execute all the tests against it.