C# Class Nancy.Demo.Caching.CachingBootstrapper

Inheritance: DefaultNancyBootstrapper
Afficher le fichier Open project: NashDotNet/ravendb_nancyfx_presentation

Méthodes publiques

Méthode Description
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 :-)

Méthodes protégées

Méthode Description
InitialiseInternal ( TinyIoC container ) : void

Method Details

CheckCache() public méthode

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
Résultat Nancy.Response

InitialiseInternal() protected méthode

protected InitialiseInternal ( TinyIoC container ) : void
container TinyIoC
Résultat void

SetCache() public méthode

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
Résultat void