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

Public Member Functions

 CacheResult (CacheQueryResult result, string physicalPath, string relativePath)
 
 CacheResult (CacheQueryResult result, Stream data, string relativePath)
 

Properties

string PhysicalPath [get]
 The physical path to the cached item. Verify .Data is null before trying to read from this file. More...
 
Stream Data [get, set]
 Provides a read-only stream to the data. Usually a MemoryStream instance, but you should dispose it once you are done. If this value is not null, it indicates that the file has not yet been written to disk, and you should read it from this stream instead. More...
 
string RelativePath [get]
 The path relative to the cache More...
 
CacheQueryResult Result [get, set]
 The result of the cache check More...
 

Detailed Description

Definition at line 22 of file CacheResult.cs.

Property Documentation

Stream ImageResizer.Plugins.DiskCache.CacheResult.Data
getset

Provides a read-only stream to the data. Usually a MemoryStream instance, but you should dispose it once you are done. If this value is not null, it indicates that the file has not yet been written to disk, and you should read it from this stream instead.

Definition at line 47 of file CacheResult.cs.

Referenced by ImageResizer.Plugins.DiskCache.DiskCache.Process().

string ImageResizer.Plugins.DiskCache.CacheResult.PhysicalPath
get

The physical path to the cached item. Verify .Data is null before trying to read from this file.

Definition at line 38 of file CacheResult.cs.

string ImageResizer.Plugins.DiskCache.CacheResult.RelativePath
get
CacheQueryResult ImageResizer.Plugins.DiskCache.CacheResult.Result
getset

The result of the cache check

Definition at line 65 of file CacheResult.cs.


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