Interface IRemoteImageLoader
Namespace: Aurigma.DesignAtoms.Services.RemoteImageLoader
Assembly: Aurigma.DesignAtoms.dll
Syntax
public interface IRemoteImageLoader
Methods
GetImageUrlCacheName
string GetImageUrlCacheName(Uri url)
Parameters
| Type | Name | Description |
|---|---|---|
System.Uri | url |
Returns
System.String
IsExistsAsync
Task<bool> IsExistsAsync(Uri url)
Parameters
| Type | Name | Description |
|---|---|---|
System.Uri | url |
Returns
System.Threading.Tasks.Task<System.Boolean>
IsExistsAsync
Task<bool> IsExistsAsync(string url)
Parameters
| Type | Name | Description |
|---|---|---|
System.String | url |
Returns
System.Threading.Tasks.Task<System.Boolean>
DownloadImageToCacheAsync
Task<string> DownloadImageToCacheAsync(Uri uri)
Parameters
| Type | Name | Description |
|---|---|---|
System.Uri | uri |
Returns
System.Threading.Tasks.Task<System.String>
DownloadImageToCache
string DownloadImageToCache(Uri uri)
Parameters
| Type | Name | Description |
|---|---|---|
System.Uri | uri |
Returns
System.String
DownloadImagesToCacheAsync
Task DownloadImagesToCacheAsync(IEnumerable<string> urls)
Parameters
| Type | Name | Description |
|---|---|---|
System.Collections.Generic.IEnumerable<System.String> | urls |
Returns
System.Threading.Tasks.Task
ValidateCachedImageAsync
Task<bool> ValidateCachedImageAsync(Uri uri, string storageId)
Parameters
| Type | Name | Description |
|---|---|---|
System.Uri | uri | |
System.String | storageId |
Returns
System.Threading.Tasks.Task<System.Boolean>
GetImageMetadataAsync
Task<WebImageMetadata> GetImageMetadataAsync(Uri uri)
Parameters
| Type | Name | Description |
|---|---|---|
System.Uri | uri |
Returns
System.Threading.Tasks.Task<Aurigma.DesignAtoms.Services.RemoteImageLoader.WebImageMetadata>
DownloadImageToStreamAsync
Task<Stream> DownloadImageToStreamAsync(Uri uri)
Parameters
| Type | Name | Description |
|---|---|---|
System.Uri | uri |
Returns
System.Threading.Tasks.Task<System.IO.Stream>