Class AppendUserModifiedHeaderAttribute
Appends a custom response header to notify the UI that the current user data has been modified
Inheritance
System.Object
System.Attribute
Microsoft.AspNetCore.Mvc.Filters.ActionFilterAttribute
Namespace: Umbraco.Cms.Web.BackOffice.Filters
Assembly: Umbraco.Web.BackOffice.dll
Syntax
public sealed class AppendUserModifiedHeaderAttribute : ActionFilterAttribute, IActionFilter, IAsyncActionFilter, IResultFilter, IAsyncResultFilter, IOrderedFilter, IFilterMetadata
Constructors
View SourceAppendUserModifiedHeaderAttribute()
An empty constructor which will always set the header.
Declaration
public AppendUserModifiedHeaderAttribute()
AppendUserModifiedHeaderAttribute(String)
A constructor specifying the action parameter name containing the user id to match against the current user and if they match the header will be appended.
Declaration
public AppendUserModifiedHeaderAttribute(string userIdParameter)
Parameters
Type | Name | Description |
---|---|---|
System.String | userIdParameter |
Methods
View SourceAppendHeader(ActionExecutingContext)
Declaration
public static void AppendHeader(ActionExecutingContext context)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext | context |
OnActionExecuting(ActionExecutingContext)
Declaration
public override void OnActionExecuting(ActionExecutingContext context)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext | context |