C# 클래스 Solita.Episerver.WebApi.Attributes.EpiserverWebApiOutputCacheAttribute

OutputCacheAttribute for Web API that invalidates the cache when Episerver content changes. Caching is disabled in debug-mode (<compilation debug="true"> in web.config) by default.
상속: System.Web.Http.Filters.ActionFilterAttribute
파일 보기 프로젝트 열기: solita/episerver-webapi

Private Properties

프로퍼티 타입 설명
CreateCacheEvictionPolicy CacheEvictionPolicy
CreateCacheKey string
GetCache IObjectInstanceCache
IsCacheable bool

공개 메소드들

메소드 설명
EpiserverWebApiOutputCacheAttribute ( int durationSeconds ) : System
OnActionExecuted ( System.Web.Http.Filters.HttpActionExecutedContext ac ) : void
OnActionExecuting ( System.Web.Http.Controllers.HttpActionContext ac ) : void

비공개 메소드들

메소드 설명
CreateCacheEvictionPolicy ( ) : CacheEvictionPolicy
CreateCacheKey ( HttpRequestMessage request ) : string
GetCache ( ) : IObjectInstanceCache
IsCacheable ( HttpMethod method ) : bool

메소드 상세

EpiserverWebApiOutputCacheAttribute() 공개 메소드

public EpiserverWebApiOutputCacheAttribute ( int durationSeconds ) : System
durationSeconds int Cache duration in seconds
리턴 System

OnActionExecuted() 공개 메소드

public OnActionExecuted ( System.Web.Http.Filters.HttpActionExecutedContext ac ) : void
ac System.Web.Http.Filters.HttpActionExecutedContext
리턴 void

OnActionExecuting() 공개 메소드

public OnActionExecuting ( System.Web.Http.Controllers.HttpActionContext ac ) : void
ac System.Web.Http.Controllers.HttpActionContext
리턴 void