Skip to content

A library for dynamically injecting Options in ASP.NET Core

License

Notifications You must be signed in to change notification settings

keeed/kwikoptions

Repository files navigation

kwikoptions

A library for dynamically injecting Options in ServiceCollection.

Downloads Version

Usage

// Add this in your IServiceCollection.
// For example, in ASP.NET Core under Startup:
public void ConfigureServices(IServiceCollection services)
{
    services.AddControllers();
    
    services.UseKwikOptions(Configuration);
}

Basic Configuration

In your settings file:

{
  "KwikOptions": {
    "OptionsTypes": [
      {
        "OptionsPath": "Sample",
        "Type": "MyProject.SampleOptions, MyProject",
        "Assembly": "MyProject.dll"
      }
    ]
  },
  "Sample": {
    "Value": "Hello"
  }
}

About

A library for dynamically injecting Options in ASP.NET Core

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages