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 | |
Excos.Options.GrowthBook |
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
- ✔️Experiment data model implementation and contextual options loader. With options based provider.
- ✔️Extension methods for fluent experiment setup (over options provider).
EF Core based provider.- ✔️GrowthBook integration (configuration provider + experiments provider).
Check out the GrowthBook integration guide.