.NET 6 implementing a custom configuration provider

How can this be improved?

Custom configuration providers are a great option to help reduce the complexity of reading configuration data from an external source like a REST API, database or any other remote resource. It will create a consistent feel within the application when accessing config data regardless of where its stored and will remove the need of an in memory cache (since the cache provider does this behind the scenes for us).

Demo Application

To illustrate how to create and use a custom configuration provider I’ve created a demo application which consists of two projects:
1. TenantApi

Summary

Custom configuration providers provide extensibility of .NET configuration allowing developers to load configuration from any source.

References

https://docs.microsoft.com/en-us/dotnet/core/extensions/custom-configuration-provider

Source

https://github.com/WilliamRees/http-configuration-provider

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
William Rees

William Rees

Software engineer with 10+ years of experience. I primarily work on the Microsoft and .NET ecosystem and have extensive experience with Microsoft Azure