Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Class RequireClientResourcesAttribute

Action filter to require client resources

Inheritance
System.Object
RequireClientResourcesAttribute
Implements
Microsoft.AspNetCore.Mvc.Filters.IPageFilter
Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata
Namespace: EPiServer.Framework.Web.Mvc
Assembly: EPiServer.Cms.AspNetCore.Mvc.dll
Version: 12.0.3
Syntax
public sealed class RequireClientResourcesAttribute : ActionFilterAttribute, IPageFilter, IFilterMetadata

Constructors

RequireClientResourcesAttribute()

Declaration
public RequireClientResourcesAttribute()

Methods

OnPageHandlerExecuted(PageHandlerExecutedContext)

Declaration
public void OnPageHandlerExecuted(PageHandlerExecutedContext context)
Parameters
Type Name Description
Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutedContext context

OnPageHandlerExecuting(PageHandlerExecutingContext)

Declaration
public void OnPageHandlerExecuting(PageHandlerExecutingContext context)
Parameters
Type Name Description
Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutingContext context

OnPageHandlerSelected(PageHandlerSelectedContext)

Declaration
public void OnPageHandlerSelected(PageHandlerSelectedContext context)
Parameters
Type Name Description
Microsoft.AspNetCore.Mvc.Filters.PageHandlerSelectedContext context

OnResultExecuting(ResultExecutingContext)

Called by the ASP.NET MVC framework before the action result executes. All client resource registers will be called to register resources that are required for the current context.

Declaration
public override void OnResultExecuting(ResultExecutingContext filterContext)
Parameters
Type Name Description
Microsoft.AspNetCore.Mvc.Filters.ResultExecutingContext filterContext

The filter context.

Implements

Microsoft.AspNetCore.Mvc.Filters.IPageFilter
Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata

Extension Methods