C# Class Cirrious.MvvmCross.Plugins.DownloadCache.MvxFileDownloadCache

Inheritance: Cirrious.CrossCore.Core.MvxLockableObject, IMvxFileDownloadCache
Datei anzeigen Open project: Everbridge/sm-MvvmCross

Private Properties

Property Type Description
DeleteNextUnneededFile void
DeleteOldestOneIfTooManyFiles void
DoFilePathCallback void
DoPeriodicTasks void
DoRequestLocalFilePath void
EnsureCacheFolderExists void
LoadIndexEntries Entry>.Dictionary
OnDownloadError void
OnDownloadSuccess void
QueueOutOfDateFilesForDelete void
QueueUnindexedFilesForDelete void
SaveIndexIfDirty void

Public Methods

Method Description
MvxFileDownloadCache ( string cacheName, string cacheFolder, int maxFileCount, System.TimeSpan maxFileAge ) : System
RequestLocalFilePath ( string httpSource, Action success, Action error ) : void

Private Methods

Method Description
DeleteNextUnneededFile ( ) : void
DeleteOldestOneIfTooManyFiles ( ) : void
DoFilePathCallback ( Entry diskEntry, Action success, Action error ) : void
DoPeriodicTasks ( ) : void
DoRequestLocalFilePath ( string httpSource, Action success, Action error ) : void
EnsureCacheFolderExists ( ) : void
LoadIndexEntries ( ) : Entry>.Dictionary
OnDownloadError ( string httpSource, Exception exception ) : void
OnDownloadSuccess ( string httpSource, string pathForDownload ) : void
QueueOutOfDateFilesForDelete ( ) : void
QueueUnindexedFilesForDelete ( ) : void
SaveIndexIfDirty ( ) : void

Method Details

MvxFileDownloadCache() public method

public MvxFileDownloadCache ( string cacheName, string cacheFolder, int maxFileCount, System.TimeSpan maxFileAge ) : System
cacheName string
cacheFolder string
maxFileCount int
maxFileAge System.TimeSpan
return System

RequestLocalFilePath() public method

public RequestLocalFilePath ( string httpSource, Action success, Action error ) : void
httpSource string
success Action
error Action
return void