C# Class DynamicImageHandler.ImageStores.FileSystemImageStore

The file system image store.
Inheritance: ImageStoreScavenger, IImageStore
ファイルを表示 Open project: CaptiveAire/Dynamic-Image-Handler

Public Methods

Method Description
FileSystemImageStore ( ) : System

Initializes a new instance of the FileSystemImageStore class.

FileSystemImageStore ( string root, System.TimeSpan fileTimeout, System.TimeSpan scavengeInterval ) : System

Initializes a new instance of the FileSystemImageStore class.

GetImageData ( string key ) : byte[]

The get image data.

PutImageData ( string key, byte imageData ) : void

The put image data.

Protected Methods

Method Description
CleanOldImages ( ) : void

The clean old images.

Private Methods

Method Description
GetFileName ( string key ) : string

The get file name.

GetFileSystemImageStorePath ( ) : string

The get file system image store path.

Method Details

CleanOldImages() protected method

The clean old images.
protected CleanOldImages ( ) : void
return void

FileSystemImageStore() public method

Initializes a new instance of the FileSystemImageStore class.
public FileSystemImageStore ( ) : System
return System

FileSystemImageStore() public method

Initializes a new instance of the FileSystemImageStore class.
///
public FileSystemImageStore ( string root, System.TimeSpan fileTimeout, System.TimeSpan scavengeInterval ) : System
root string /// The root. ///
fileTimeout System.TimeSpan /// The file timeout. ///
scavengeInterval System.TimeSpan /// The scavange interval. ///
return System

GetImageData() public method

The get image data.
public GetImageData ( string key ) : byte[]
key string /// The key. ///
return byte[]

PutImageData() public method

The put image data.
public PutImageData ( string key, byte imageData ) : void
key string /// The key. ///
imageData byte /// The image data. ///
return void