C# Класс Nancy.Demo.Caching.CachingBootstrapper

Наследование: DefaultNancyBootstrapper
Показать файл Открыть проект

Открытые методы

Метод Описание
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