Expanded

Building Configurable Applications Using .NET Generic Host

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.
Course info
Rating
(14)
Level
Intermediate
Updated
May 4, 2021
Duration
1h 53m
Table of contents
Description
Course info
Rating
(14)
Level
Intermediate
Updated
May 4, 2021
Duration
1h 53m
Description

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
About the author

Matt is an experienced architect, developer, and mentor. Driven by making the complex simple, he takes pride in sharing the lessons learned along the way.

More from the author
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hi everyone. My name is Matthew Tester, and welcome to my course, Building Configurable Applications Using the .NET Generic Host. I'm a technology consultant and cloud architect at Pure Blue Consulting in New Zealand. 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. Whether configuring via JSON files, environment variables, or other sources, how to make these configuration values available using solid coding practices is particularly crucial for larger applications. In this course, you'll learn how to implement applications so they can be easily configured by leveraging the .NET class libraries. Some of the major topics that we will cover include loading configuration values from multiple sources, then using strongly typed configuration to make it easier to work with. We'll explore how to use configuration with the dependency injection feature of the generic host, how configuration can be reloaded without restarting the application, and we'll examine the conventions and patterns for creating configurable code libraries. By the end of this course, you'll be able to develop configurable applications and services, which are portable, flexible, and ultimately more maintainable. Before beginning the course, you should be familiar with C# and have a basic understanding of generics. I hope you'll join me on this journey to learn about the .NET configuration libraries with the Building Configurable Applications Using the .NET Generic Host course at Pluralsight.