C# Класс TheChan.Services.Cache.CacheService

Наследование: ICacheService
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

ClearCache() публичный Метод

public ClearCache ( CacheItemType type ) : System.Threading.Tasks.Task
type CacheItemType
Результат System.Threading.Tasks.Task

DeleteItemAsync() публичный Метод

public DeleteItemAsync ( string uri, CacheItemType type = CacheItemType.Other ) : System.Threading.Tasks.Task
uri string
type CacheItemType
Результат System.Threading.Tasks.Task

GetCachedItemsSizeInBytes() публичный Метод

public GetCachedItemsSizeInBytes ( CacheItemType type ) : Task
type CacheItemType
Результат Task

RetrieveFileAsync() публичный Метод

public RetrieveFileAsync ( string url, CacheItemType type = CacheItemType.Other, Action onProgress = null ) : Task
url string
type CacheItemType
onProgress Action
Результат Task

RetrieveStreamAsync() публичный Метод

public RetrieveStreamAsync ( string url, CacheItemType type = CacheItemType.Other, Action onProgress = null ) : Task
url string
type CacheItemType
onProgress Action
Результат Task