Class SitecoreLayoutContextControllerFilter

Version: 21.x

Identifies the current controller for the SitecoreRenderingContext.

Inheritance

System.Object

SitecoreLayoutContextControllerFilter

Implements

Microsoft.AspNetCore.Mvc.Filters.IActionFilter

Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata

Namespace: Sitecore.AspNet.RenderingEngine.Filters

Assembly: Sitecore.AspNet.RenderingEngine.dll
Syntax
public class SitecoreLayoutContextControllerFilter : Object

Constructors

SitecoreLayoutContextControllerFilter()

Declaration
public SitecoreLayoutContextControllerFilter()

Methods

OnActionExecuted(ActionExecutedContext)

Declaration
public void OnActionExecuted(ActionExecutedContext context)
Parameters
TypeNameDescription
Microsoft.AspNetCore.Mvc.Filters.ActionExecutedContextcontext

OnActionExecuting(ActionExecutingContext)

Declaration
public void OnActionExecuting(ActionExecutingContext context)
Parameters
TypeNameDescription
Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContextcontext

Implements

Microsoft.AspNetCore.Mvc.Filters.IActionFilter

Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata

If you have suggestions for improving this article, let us know!