Méthode | Description | |
---|---|---|
DistributedCacheFilter ( IDistributedCacheService cache, System.TimeSpan expirationTime ) : System |
Initializes a new instance of the DistributedCacheFilter class.
|
|
OnActionExecuted ( System actionExecutedContext ) : void |
Called after the action method executes. Saves the result to the cache.
|
|
OnActionExecuting ( System.Web.Http.Controllers.HttpActionContext actionContext ) : void |
Called before an action method executes. Gets the cached result if available.
|
Méthode | Description | |
---|---|---|
GetKey ( HttpActionDescriptor actionDescriptor ) : string |
Gets the key from the action descriptor.
|
public DistributedCacheFilter ( IDistributedCacheService cache, System.TimeSpan expirationTime ) : System | ||
cache | IDistributedCacheService | The cache. |
expirationTime | System.TimeSpan | The expiration time. |
Résultat | System |
public OnActionExecuted ( System actionExecutedContext ) : void | ||
actionExecutedContext | System | The action executed context. |
Résultat | void |
public OnActionExecuting ( System.Web.Http.Controllers.HttpActionContext actionContext ) : void | ||
actionContext | System.Web.Http.Controllers.HttpActionContext | The action Context. |
Résultat | void |