A library for dynamically injecting Options in ServiceCollection.
// Add this in your IServiceCollection.
// For example, in ASP.NET Core under Startup:
public void ConfigureServices(IServiceCollection services)
{
services.AddControllers();
services.UseKwikOptions(Configuration);
}
In your settings file:
{
"KwikOptions": {
"OptionsTypes": [
{
"OptionsPath": "Sample",
"Type": "MyProject.SampleOptions, MyProject",
"Assembly": "MyProject.dll"
}
]
},
"Sample": {
"Value": "Hello"
}
}