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.3Syntax
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. |
context |
OnPageHandlerExecuting(PageHandlerExecutingContext)
Declaration
public void OnPageHandlerExecuting(PageHandlerExecutingContext context)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
context |
OnPageHandlerSelected(PageHandlerSelectedContext)
Declaration
public void OnPageHandlerSelected(PageHandlerSelectedContext context)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
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. |
filterContext | The filter context. |
Implements
Microsoft.AspNetCore.Mvc.Filters.IPageFilter
Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata