Session

Not So Minimal APIs & Dependency Extension: Maintaining a Clean Entry Point to your Code

Program.cs is the opening chapter of your application’s story—but it often becomes a cluttered and unwieldy file as projects grow. Minimal APIs offer a clean and lightweight way to structure ASP.NET Core Web APIs without the boilerplate of traditional Controllers, but placing all endpoints directly in Program.cs can quickly lead to chaos. Likewise, as the number of services in your application increases, your dependency injection configuration can overwhelm your startup code.

In this session, we’ll walk through practical techniques for organizing your Minimal APIs and service registrations using static classes and extension methods. You’ll learn how to refactor your startup pipeline into clean, maintainable, and discoverable components—without sacrificing the simplicity that Minimal APIs provide or losing any of your injected services. We’ll also examine how Minimal APIs compare to traditional Controllers to help you choose the right approach for your application.

Tim Purdum

Creative GIS and Web-based .NET Engineer

Cedar Falls, Iowa, United States

Actions

Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.

Jump to top