Back to Website
Show / Hide Table of Contents

Class RemoteImageLoader

Inheritance
System.Object
RemoteImageLoader
Implements
IRemoteImageLoader
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Aurigma.DesignAtoms.Services.RemoteImageLoader
Assembly: Aurigma.DesignAtoms.dll
Syntax
public class RemoteImageLoader : IRemoteImageLoader

Constructors

RemoteImageLoader(IFileCache, HttpClient, Int32)

Declaration
public RemoteImageLoader(IFileCache fileCache, HttpClient httpClient, int retryCount = 0)
Parameters
Type Name Description
IFileCache fileCache
System.Net.Http.HttpClient httpClient
System.Int32 retryCount

Methods

DownloadImagesToCacheAsync(IEnumerable<String>)

Declaration
public Task DownloadImagesToCacheAsync(IEnumerable<string> urls)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.String> urls
Returns
Type Description
System.Threading.Tasks.Task

DownloadImageToCache(Uri)

Declaration
public string DownloadImageToCache(Uri uri)
Parameters
Type Name Description
System.Uri uri
Returns
Type Description
System.String

DownloadImageToCacheAsync(Uri)

Declaration
public Task<string> DownloadImageToCacheAsync(Uri uri)
Parameters
Type Name Description
System.Uri uri
Returns
Type Description
System.Threading.Tasks.Task<System.String>

DownloadImageToStreamAsync(Uri)

Declaration
public Task<Stream> DownloadImageToStreamAsync(Uri uri)
Parameters
Type Name Description
System.Uri uri
Returns
Type Description
System.Threading.Tasks.Task<System.IO.Stream>

GetImageMetadataAsync(Uri)

Declaration
public Task<WebImageMetadata> GetImageMetadataAsync(Uri uri)
Parameters
Type Name Description
System.Uri uri
Returns
Type Description
System.Threading.Tasks.Task<WebImageMetadata>

GetImageUrlCacheName(Uri)

Declaration
public string GetImageUrlCacheName(Uri url)
Parameters
Type Name Description
System.Uri url
Returns
Type Description
System.String

GetImageUrlCachePrefix(Uri)

Declaration
public string GetImageUrlCachePrefix(Uri url)
Parameters
Type Name Description
System.Uri url
Returns
Type Description
System.String

IsExistsAsync(String)

Declaration
public Task<bool> IsExistsAsync(string url)
Parameters
Type Name Description
System.String url
Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

IsExistsAsync(Uri)

Declaration
public Task<bool> IsExistsAsync(Uri url)
Parameters
Type Name Description
System.Uri url
Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

ValidateCachedImageAsync(Uri, String)

Declaration
public virtual Task<bool> ValidateCachedImageAsync(Uri uri, string storageId)
Parameters
Type Name Description
System.Uri uri
System.String storageId
Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

Implements

IRemoteImageLoader
Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2025 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback