C# Class TheChan.Services.Cache.CacheService

Inheritance: ICacheService
Afficher le fichier Open project: acedened/TheChan

Méthodes publiques

Méthode Description
ClearCache ( CacheItemType type ) : System.Threading.Tasks.Task
DeleteItemAsync ( string uri, CacheItemType type = CacheItemType.Other ) : System.Threading.Tasks.Task
GetCachedItemsSizeInBytes ( CacheItemType type ) : Task
RetrieveFileAsync ( string url, CacheItemType type = CacheItemType.Other, Action onProgress = null ) : Task
RetrieveStreamAsync ( string url, CacheItemType type = CacheItemType.Other, Action onProgress = null ) : Task

Private Methods

Méthode Description
DownloadAndGetStream ( string url, StorageFile newFile, Action onProgress ) : Task
DownloadToFile ( string url, StorageFile newFile, Action onProgress ) : System.Threading.Tasks.Task
GetFolderForType ( CacheItemType itemType ) : Task
GetFolderSize ( StorageFolder folder ) : Task
GetOrCreateFile ( string url, CacheItemType type ) : Task

Method Details

ClearCache() public méthode

public ClearCache ( CacheItemType type ) : System.Threading.Tasks.Task
type CacheItemType
Résultat System.Threading.Tasks.Task

DeleteItemAsync() public méthode

public DeleteItemAsync ( string uri, CacheItemType type = CacheItemType.Other ) : System.Threading.Tasks.Task
uri string
type CacheItemType
Résultat System.Threading.Tasks.Task

GetCachedItemsSizeInBytes() public méthode

public GetCachedItemsSizeInBytes ( CacheItemType type ) : Task
type CacheItemType
Résultat Task

RetrieveFileAsync() public méthode

public RetrieveFileAsync ( string url, CacheItemType type = CacheItemType.Other, Action onProgress = null ) : Task
url string
type CacheItemType
onProgress Action
Résultat Task

RetrieveStreamAsync() public méthode

public RetrieveStreamAsync ( string url, CacheItemType type = CacheItemType.Other, Action onProgress = null ) : Task
url string
type CacheItemType
onProgress Action
Résultat Task