FeatureBarrierAttribute class

namespace: Serenity.Web   assemblySerenity.Net.Web

An attribute that can be placed on MVC controllers, controller actions, or Razor pages to require all or any of a set of features to be enabled. Note that if no IFeatureToggles service is registered, the feature barrier will always pass.

[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = true)]
public class FeatureBarrierAttribute : RequiresFeatureAttribute, IActionConstraint, IPageFilter

Public Members

name description
FeatureBarrierAttribute(…) Creates an attribute that can be used to barrier actions or pages. The barrier can be configured to require all or any of the provided feature(s) to pass. (2 constructors)
Order { get; }
Accept(…)
OnPageHandlerExecuted(…)
OnPageHandlerExecuting(…)
OnPageHandlerSelected(…)

See Also