Skip to content

kibiinc/Kibii.Extensions.Configuration.InMemoryJson

Repository files navigation

Kibii.Extensions.Configuration.InMemoryJson

This package allows you to use in-memory JSON strings as a configuration option for Microsoft.Extensions.Configuration (IConfigurationBuilder) classes.

Usage

Simple, just like so:

IConfiguration configuration = new ConfigurationBuilder()
          .AddInMemoryJson("{\"MyValue\": 10}")
          .Build();
          
int value = configuration.GetValue<int>("MyValue");

Download

You can either download the source or use the NuGet package available at https://www.nuget.org/packages/Kibii.Extensions.Configuration.InMemoryJson

About

In-memory JSON provider for Microsoft.Extensions.Configuration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages