C# Class Nancy.Demo.Caching.CachedResponse

Wraps a regular response in a cached response The cached response invokes the old response and stores it as a string. Obviously this only works for ASCII text based responses, so don't use this in a real application :-)
Inheritance: Nancy.Response
Mostrar archivo Open project: NashDotNet/ravendb_nancyfx_presentation Class Usage Examples

Public Methods

Method Description
CachedResponse ( Response response ) : System

Protected Methods

Method Description
GetContents ( string contents ) : Action

Method Details

CachedResponse() public method

public CachedResponse ( Response response ) : System
response Nancy.Response
return System

GetContents() protected static method

protected static GetContents ( string contents ) : Action
contents string
return Action