C# 클래스 Nancy.Demo.Caching.CachingBootstrapper

상속: DefaultNancyBootstrapper
파일 보기 프로젝트 열기: NashDotNet/ravendb_nancyfx_presentation

공개 메소드들

메소드 설명
CheckCache ( Nancy.NancyContext context ) : Response

Check to see if we have a cache entry - if we do, see if it has expired or not, if it hasn't then return it, otherwise return null;

SetCache ( Nancy.NancyContext context ) : void

Adds the current response to the cache if required Only stores by Path and stores the response in a dictionary. Do not use this as an actual cache :-)

보호된 메소드들

메소드 설명
InitialiseInternal ( TinyIoC container ) : void

메소드 상세

CheckCache() 공개 메소드

Check to see if we have a cache entry - if we do, see if it has expired or not, if it hasn't then return it, otherwise return null;
public CheckCache ( Nancy.NancyContext context ) : Response
context Nancy.NancyContext Current context
리턴 Nancy.Response

InitialiseInternal() 보호된 메소드

protected InitialiseInternal ( TinyIoC container ) : void
container TinyIoC
리턴 void

SetCache() 공개 메소드

Adds the current response to the cache if required Only stores by Path and stores the response in a dictionary. Do not use this as an actual cache :-)
public SetCache ( Nancy.NancyContext context ) : void
context Nancy.NancyContext Current context
리턴 void