lundi 4 avril 2016

how create a filter action for ObjectCache for caching in Asp.net mvc

hi ,all i want create a filter action attribute for check object cache . i use cache tecnology in asp.net mvc. object cache is exists in system.runtime.cache; i need a filter for filtering action in controller and if my cache have a value then not call my action and if my cache not have a value then call my action. please help me.

 public override void OnActionExecuting(System.Web.Http.Controllers.HttpActionContext actionContext)
    {

    }

Aucun commentaire:

Enregistrer un commentaire