-
Notifications
You must be signed in to change notification settings - Fork 119
Closed
Description
Right now, there's no nice declarative way (that I could find) to add a feature flag to a razor page.
[FeatureGate(FeatureFlags.FeatureA)]
public class IndexModel : PageModel {...}Doesn't work because FeatureGateAttribute only overrides OnActionExecutionAsync. I haven't tested this myself, but I believe if you also implement OnResultExecutingAsync you'll cover Razor pages. At least according to the docs Filter methods for Razor Pages in ASP.NET Core
webwake, xtellurian, mdarefull, xt0rted, veuncent and 2 more
Metadata
Metadata
Assignees
Labels
No labels