View Source
Class FeatureAuthorizeHandler
Ensures that the controller is an authorized feature.
Inheritance
System.Object
Assembly: Umbraco.Web.Common.dll
Syntax
public class FeatureAuthorizeHandler : AuthorizationHandler<FeatureAuthorizeRequirement>, IAuthorizationHandler
Constructors
View Source
FeatureAuthorizeHandler(UmbracoFeatures)
Declaration
public FeatureAuthorizeHandler(UmbracoFeatures umbracoFeatures)
Parameters
Type |
Name |
Description |
UmbracoFeatures |
umbracoFeatures |
|
View Source
FeatureAuthorizeHandler(UmbracoFeatures, IRuntimeState)
Declaration
public FeatureAuthorizeHandler(UmbracoFeatures umbracoFeatures, IRuntimeState runtimeState)
Parameters
Type |
Name |
Description |
UmbracoFeatures |
umbracoFeatures |
|
IRuntimeState |
runtimeState |
|
Methods
View Source
HandleRequirementAsync(AuthorizationHandlerContext, FeatureAuthorizeRequirement)
Declaration
protected override Task HandleRequirementAsync(AuthorizationHandlerContext context, FeatureAuthorizeRequirement requirement)
Parameters
Returns