When implementing a custom IFeatureDefinitionProvider to source feature definitions from external backends (such as databases or REST APIs), you can use the ParametersObject property on FeatureFilterConfiguration to provide filter settings.
This approach allows you to assign strongly-typed settings objects (e.g., TargetingFilterSettings) directly to the configuration, bypassing the need to construct a complex IConfiguration object using magic string keys.
new FeatureFilterConfiguration
{
Name = "Microsoft.Targeting",
ParametersObject = new TargetingFilterSettings
{
Audience = new Audience
{
Users = new List<string> { "Jeff", "Anne" },
Groups = new List<GroupRollout> { /* ... */ },
DefaultRolloutPercentage = 20
}
}
}