C# Class FFImageLoading.Cache.DownloadCache

Inheritance: IDownloadCache
显示文件 Open project: daniel-luberda/FFImageLoading

Public Methods

Method Description
DownloadAndCacheIfNeededAsync ( string url, TaskParameter parameters, Configuration configuration, CancellationToken token ) : Task
DownloadCache ( Configuration configuration ) : System

Protected Methods

Method Description
AllowDiskCaching ( CacheType cacheType ) : bool
DownloadAsync ( string url, CancellationToken token, HttpClient client ) : Task

Method Details

AllowDiskCaching() protected method

protected AllowDiskCaching ( CacheType cacheType ) : bool
cacheType CacheType
return bool

DownloadAndCacheIfNeededAsync() public method

public DownloadAndCacheIfNeededAsync ( string url, TaskParameter parameters, Configuration configuration, CancellationToken token ) : Task
url string
parameters TaskParameter
configuration Configuration
token System.Threading.CancellationToken
return Task

DownloadAsync() protected method

protected DownloadAsync ( string url, CancellationToken token, HttpClient client ) : Task
url string
token System.Threading.CancellationToken
client System.Net.Http.HttpClient
return Task

DownloadCache() public method

public DownloadCache ( Configuration configuration ) : System
configuration Configuration
return System