
FeatureMasterX is a powerful and easy-to-use extension for Microsoft’s FeatureManagement library. It simplifies feature toggling by allowing more intuitive configurations for users, accounts, and other contexts.
The first implementation, ListCheckFeatureFilter, allows you to group multiple features under ListCheck. It evaluates access based on the EnabledFor property:
EnabledFor is set to ALL, always return true.{
"FeatureManagement": {
"ListCheck": {
"NewFeature": {
"EnabledFor": [ "user1@example.com", "admin@example.com" ]
},
"AllFeature": {
"EnabledFor": [ "ALL" ]
}
}
}
}
Install-Package FeatureMasterX
Register in services
builder.AddFeatureMasterX();
var featureManager = services.BuildServiceProvider().GetRequiredService<IFeatureManager>();
if (await featureManager.IsEnabledAsync("NewFeature", "user10@example.com"))
{
// Feature is enabled for the current user
}
This project is licensed under the MIT License.