Building Configurable Applications Using .NET 5 Generic Host

by Matt Tester

Hard-coded paths, URLs, and other settings make your applications inflexible and difficult to change. This course will teach you how to use the .NET Generic Host and Configuration APIs in your applications, allowing them to update without recompiling.

What you'll learn

Applications and services need to be flexible, using different configuration settings depending on whether they are running in development or production, without having to recompile.

In this course, Building Configurable Applications Using .NET Generic Host, you’ll learn how to implement applications so they can be easily configured leveraging the .NET Class Libraries.

First, you’ll explore how the .NET Configuration API simplifies working with configuration from files and other sources.

Next, you’ll discover how to expose your configuration values throughout your applications efficiently using dependency injection.

Finally, you’ll learn some best practices on how to make your reusable code libraries configurable too.

When you’re finished with this course, you’ll have the skills and knowledge of developing with the .NET Generic Host and Configuration APIs needed to make your applications and services configurable for each target environment.

About the author

Matt is an experienced architect, developer, and mentor. Driven by making the complex simple, he takes pride in finding new and better ways to work with technology, sharing the lessons learned along the way. As principal consultant at Pure Blue, Matt develops and advises on applications for the cloud using Azure, .NET, and JavaScript. Matt lives in Christchurch, New Zealand where he enjoys mountain running and lifting heavy weights.

Ready to upskill? Get started