4 minutes to read read

Around four years ago when .Net Core was in its early stages, I wrote back a Configuration provider for .net core 1.x. This has been a long time. The package did picked up very well and there were multiple downloads and a few queries as well. Many people would never know that .net core started with json project files. But since then a lot changed and my package went obsolete.

A few days back got some time and bandwidth and wised to revise the package. This would not only update the latest package but would also help me understand what changes have been done as in framework as a whole. So, my fellow countrymen let me present you the MongoDbConfiguration Provider for .net Core (😁) /s

Read on further to get the details as I explain the “simple” steps to write a custom configuration provider for .net core 3.1.

Continue reading

< 1 minute to readCheckout the new MongoDbConfiguration Provider for ASP5. https://www.nuget.org/packages/MongoDb.Asp.ConfigurationProvider/ with support for blank and null keys.

Install-Package MongoDb.Asp.ConfigurationProvider

Usage: Use the single line config to load the configuration:

builder.AddMongoDbConfiguration(“mongodb://localhost”,”ConfigDatabase”,”SettingsCollection”,”SettingType”, “SettingValue”);

 

A brief blog post on implementation and open source GIT Path shall soon follow.