Skip to content

feat(variants): allow in-memory objects - #615

Open
Степан (Stepami) wants to merge 2 commits into
microsoft:mainfrom
Stepami:feature/variants-params
Open

feat(variants): allow in-memory objects#615
Степан (Stepami) wants to merge 2 commits into
microsoft:mainfrom
Stepami:feature/variants-params

Conversation

@Stepami

Copy link
Copy Markdown

Why this PR?

Implementing IFeatureDefinitionProvider makes it inconvinient to fill variant bound values if they don't come from configuration.

Similarly to feature filters I decided to introduce an object that can be used as an alternative ConfigurationValue. Custom IFeatureDefinitionProvider implementations can populate this property directly instead of constructing an IConfigurationSection instance.

Visible Changes

  • Microsoft.FeatureManagement.VariantDefinition.ConfigurationObject
  • Microsoft.FeatureManagement.Variant.ConfigurationObject

@Stepami

Copy link
Copy Markdown
Author

Hey, Zhiyuan Liang (@zhiyuanliang-ms)! could you take a look please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant