Config Map File Provider NuGet Package

Dynamic reload config from file for Kubernetes with Config Map.


Usage:
static IHostBuilder CreateHostBuilder(string[] args)
{
return Microsoft.Extensions.Hosting.Host.CreateDefaultBuilder(args)
.ConfigureAppConfiguration((c,b)=>{
b.SetBasePath(Path.Join(AppContext.BaseDirectory,"config"))
.AddJsonFile(ConfigMapFileProvider.FromRelativePath("config"), "appsettings.json");
})
.UseConsoleLifetime()
;
}.




Got any Config Map File Provider Question?





Info

Version: 2.0.1
Author(s): Jaine.ch
Last Update: Thursday, August 12, 2021
.NET Fiddle: Create the first Fiddle
NuGet Url: https://www.nuget.org/packages/ConfigMapFileProvider


Install
Install-Package ConfigMapFileProvider
dotnet add package ConfigMapFileProvider
paket add ConfigMapFileProvider
ConfigMapFileProvider Download (Unzip the "nupkg" after downloading)





STATS

must-have-score

1

avg-downloads-per-day

6

days-since-last-release

1197