C# Class Rebel.Cms.Web.Mvc.ActionFilters.SupportClientNotificationsAttribute

Inheritance: AbstractTempDataCookieFilter
显示文件 Open project: RebelCMS/rebelcmsxu5

Public Methods

Method Description
OnActionExecuted ( System.Web.Mvc.ActionExecutedContext filterContext ) : void

Ensures that the controller is of the required type, if so lets execution continue on the base class

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

Ensures that the controller is of the required type, if so lets execution continue on the base class

Protected Methods

Method Description
GetTempDataKey ( System.Web.Mvc.ControllerContext filterContext ) : string

Returns the request id as the temp data key

GetTempDataValue ( System.Web.Mvc.ControllerContext filterContext ) : object

Returns the notifications to be stored in the temp data

Private Methods

Method Description
GetController ( IController controller ) : INotificationController

Gets the BackOfficeController type from the filter context's controller instance

Method Details

GetTempDataKey() protected method

Returns the request id as the temp data key
protected GetTempDataKey ( System.Web.Mvc.ControllerContext filterContext ) : string
filterContext System.Web.Mvc.ControllerContext
return string

GetTempDataValue() protected method

Returns the notifications to be stored in the temp data
protected GetTempDataValue ( System.Web.Mvc.ControllerContext filterContext ) : object
filterContext System.Web.Mvc.ControllerContext
return object

OnActionExecuted() public method

Ensures that the controller is of the required type, if so lets execution continue on the base class
public OnActionExecuted ( System.Web.Mvc.ActionExecutedContext filterContext ) : void
filterContext System.Web.Mvc.ActionExecutedContext
return void

OnResultExecuted() public method

Ensures that the controller is of the required type, if so lets execution continue on the base class
public OnResultExecuted ( System.Web.Mvc.ResultExecutedContext filterContext ) : void
filterContext System.Web.Mvc.ResultExecutedContext
return void