C# Class SampleApplication.Controllers.FilterInjectionExample.ClearCacheOnSuccessAttribute

Specifies that on successful execution the cached result of the action specified is cleared.
Inheritance: System.Web.Http.Filters.ActionFilterAttribute
Afficher le fichier Open project: ninject/Ninject.Web.WebApi

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
ClearCacheOnSuccessAttribute ( string actionName ) : System.Web.Http.Filters

Initializes a new instance of the ClearCacheOnSuccessAttribute class.

OnActionExecuted ( System.Web.Http.Filters.HttpActionExecutedContext actionExecutedContext ) : void

Called by the MVC framework after the action method executes.

Method Details

ClearCacheOnSuccessAttribute() public méthode

Initializes a new instance of the ClearCacheOnSuccessAttribute class.
public ClearCacheOnSuccessAttribute ( string actionName ) : System.Web.Http.Filters
actionName string Name of the action.
Résultat System.Web.Http.Filters

OnActionExecuted() public méthode

Called by the MVC framework after the action method executes.
public OnActionExecuted ( System.Web.Http.Filters.HttpActionExecutedContext actionExecutedContext ) : void
actionExecutedContext System.Web.Http.Filters.HttpActionExecutedContext The action executed context.
Résultat void