C# Class Worki.Infrastructure.HttpHeaderAttribute

Represents an attribute that is used to add HTTP Headers to a Controller Action response.
Inheritance: System.Web.Mvc.ActionFilterAttribute
Datei anzeigen Open project: tah91/eworkyWebSite

Public Methods

Method Description
HttpHeaderAttribute ( string name, string value ) : System

Initializes a new instance of the HttpHeaderAttribute class.

OnResultExecuted ( System.Web.Mvc.ResultExecutedContext filterContext ) : void

Called by the MVC framework after the action result executes.

Method Details

HttpHeaderAttribute() public method

Initializes a new instance of the HttpHeaderAttribute class.
public HttpHeaderAttribute ( string name, string value ) : System
name string The HTTP header name.
value string The HTTP header value.
return System

OnResultExecuted() public method

Called by the MVC framework after the action result executes.
public OnResultExecuted ( System.Web.Mvc.ResultExecutedContext filterContext ) : void
filterContext System.Web.Mvc.ResultExecutedContext The filter context.
return void