-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FeatureGate filter question #341
Comments
Hi, @WeihanLi The Feature Management ASP.NET library provides Here what you pointed out is the The ASP.NET Core includes some built-in filter attributes: There is no built-in filter attributes for resource filter and authorization filter. The way to use According to the diagram, it seems like the stage of "Model Binding" can be skipped. I don't think using Therefore, it brings two questions:
I need to do more investigation. |
Thanks for the reply
I tried to propose an |
It makes more sense to use resourse filter for the feature gate scenario. I will take a look at your PR and learn how to implement a filter attribute. |
Currently, the
FeatureGate
is a kind ofActionFilter
, should we consider usingResourceFilter
orAuthorizationFilter
instead, that would be more efficient to avoid some unnecessary flow when feature disabledFeatureManagement-Dotnet/src/Microsoft.FeatureManagement.AspNetCore/FeatureGateAttribute.cs
Line 18 in e4adec4
The text was updated successfully, but these errors were encountered: