ImageResizer  3.4.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
Public Member Functions | List of all members
ImageResizer.Plugins.Basic.NoCache Class Reference

Default cache when DiskCache isn't installed. Useful for debugging purposes but unsuited for production use, and will use large quanities of RAM. (Scales to fewer than 5 concurrent requests). Serves content directly to the client from memory. More...

Inheritance diagram for ImageResizer.Plugins.Basic.NoCache:
Inheritance graph
[legend]
Collaboration diagram for ImageResizer.Plugins.Basic.NoCache:
Collaboration graph
[legend]

Public Member Functions

IPlugin Install (Configuration.Config c)
 Installs the caching system as the first choice. More...
 
bool Uninstall (Configuration.Config c)
 Removes the plugin. More...
 
void Process (System.Web.HttpContext context, IResponseArgs e)
 Sends the response directly to the client with no caching logic. More...
 
bool CanProcess (System.Web.HttpContext current, IResponseArgs e)
 
- Public Member Functions inherited from ImageResizer.Caching.ICache
bool CanProcess (HttpContext current, IResponseArgs e)
 Returns false if the cache is unable to process the request. If false, the caller should fall back to a different cache More...
 
void Process (HttpContext current, IResponseArgs e)
 Must update the cache if needed, then either rewrite, redirect or serve the cached data. More...
 
- Public Member Functions inherited from ImageResizer.Plugins.IPlugin
IPlugin Install (Config c)
 Installs the plugin in the specified Config instance. The plugin must handle all the work of loading settings, registering the plugin etc. More...
 
bool Uninstall (Config c)
 Uninstalls the plugin. Should reverse all changes made during Install More...
 

Detailed Description

Default cache when DiskCache isn't installed. Useful for debugging purposes but unsuited for production use, and will use large quanities of RAM. (Scales to fewer than 5 concurrent requests). Serves content directly to the client from memory.

Definition at line 14 of file NoCache.cs.

Member Function Documentation

IPlugin ImageResizer.Plugins.Basic.NoCache.Install ( Configuration.Config  c)
inline

Installs the caching system as the first choice.

Parameters
c
Returns

Definition at line 20 of file NoCache.cs.

20  {
21  c.Plugins.add_plugin(this); return this;
22  }
void ImageResizer.Plugins.Basic.NoCache.Process ( System.Web.HttpContext  context,
IResponseArgs  e 
)
inline

Sends the response directly to the client with no caching logic.

Parameters
context
e

Definition at line 37 of file NoCache.cs.

37  {
38  context.RemapHandler(new NoCacheHandler(e));
39  // The following line of code does nothing. I don't think there is any way to make this work before .NET 2.0 SP2
40  //context.Handler = new NoCacheHandler(e);
41 
42  }
bool ImageResizer.Plugins.Basic.NoCache.Uninstall ( Configuration.Config  c)
inline

Removes the plugin.

Parameters
c
Returns

Definition at line 28 of file NoCache.cs.

28  {
29  c.Plugins.remove_plugin(this); return true;
30  }

The documentation for this class was generated from the following file: