C# Class Bombsquad.DynamicMedia.Implementations.Cache.FileSystemBasedMediaCache

Inheritance: IMediaCache
Show file Open project: bmbsqd/dynamic-media

Public Methods

Method Description
TryAddToCache ( string path, Stream stream, IFormatInfo outputFormat, IAddToCacheResult &result ) : bool
TryServeRequestFromCache ( string path, IFormatInfo outputFormat, IResult &result ) : bool

Protected Methods

Method Description
FileSystemBasedMediaCache ( IFileInfoETagCalculator fileInfoETagCalculator ) : System
GetCacheFileInfo ( string path, IFormatInfo outputFormat ) : FileInfo

Method Details

FileSystemBasedMediaCache() protected method

protected FileSystemBasedMediaCache ( IFileInfoETagCalculator fileInfoETagCalculator ) : System
fileInfoETagCalculator IFileInfoETagCalculator
return System

GetCacheFileInfo() protected abstract method

protected abstract GetCacheFileInfo ( string path, IFormatInfo outputFormat ) : FileInfo
path string
outputFormat IFormatInfo
return System.IO.FileInfo

TryAddToCache() public method

public TryAddToCache ( string path, Stream stream, IFormatInfo outputFormat, IAddToCacheResult &result ) : bool
path string
stream Stream
outputFormat IFormatInfo
result IAddToCacheResult
return bool

TryServeRequestFromCache() public method

public TryServeRequestFromCache ( string path, IFormatInfo outputFormat, IResult &result ) : bool
path string
outputFormat IFormatInfo
result IResult
return bool