Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 1.83 KB

README.md

File metadata and controls

34 lines (23 loc) · 1.83 KB

Excos - .NET feature management and experimentation

This library aims to provide experiment configuration framework on top of Microsoft.Extensions.Options.Contextual (source) and guide you through the steps to set up experiments in your application.

I got inspired to start working on this after writing a blog post on experimentation.

excos - groups of people appointed or elected as the decision-making body of an organization

Package Version
Excos.Options NuGet version (Excos.Options)
Excos.Options.GrowthBook NuGet version (Excos.Options.GrowthBook)

Usage

See Usage for more details and unit tests for code samples.

services.ConfigureExcos<MyOptions>("MySection");
services.ConfigureExcosFeatures("Features");

var contextualOptions = provider.GetRequiredService<IContextualOptions<MyOptions, MyContext>>();
var options = await contextualOptions.GetAsync(new MyContext { UserId = "deadbeef" }, default);
// options.MyValue

Roadmap

  1. ✔️Experiment data model implementation and contextual options loader. With options based provider.
  2. ✔️Extension methods for fluent experiment setup (over options provider).
  3. EF Core based provider.
  4. ✔️GrowthBook integration (configuration provider + experiments provider).

Check out the GrowthBook integration guide.