Skip to content

AddFeatureManagement doesn't Register a Custom Configuration #546

@daniell-reeco

Description

@daniell-reeco

Nuget version affected: 4.2.0 (worked in 4.0.0 until nuget updated)

In my Program.cs:
builder.Services.AddFeatureManagement(builder.Configuration.GetSection("FeatureFlags"));

GetSection confirmed to retrieve the configuration from appsettings.json which is:
"FeatureFlags": { "UseReecoUsers": true }

but when calling IsEnabledAsync with the manager I received the following log:
"The feature definition for the feature 'UseReecoUsers' was not found"

When changing the feature flag section to:
"FeatureManagement": { "UseReecoUsers": true }

and changing the line in Program.cs to:
builder.Services.AddFeatureManagement(/*builder.Configuration.GetSection("FeatureFlags")*/);

it identifed the feature flag.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions