---
title: "Interface IRemoteImageLoader | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Services.RemoteImageLoader/IRemoteImageLoader/"
---

# Interface IRemoteImageLoader

> `System.String`

###### **Namespace**: [Aurigma.DesignAtoms.Services.RemoteImageLoader](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Services.RemoteImageLoader.md)

###### **Assembly**: Aurigma.DesignAtoms.dll

```csharp title="Syntax"
public interface IRemoteImageLoader
```

## Methods

### GetImageUrlCacheName

```csharp
string GetImageUrlCacheName(Uri url)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.Uri` | *url* |  |

##### Returns

### IsExistsAsync

```csharp
Task<bool> IsExistsAsync(Uri url)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.Uri` | *url* |  |

##### Returns

`System.Threading.Tasks.Task<System.Boolean>`

### IsExistsAsync

```csharp
Task<bool> IsExistsAsync(string url)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.String` | *url* |  |

##### Returns

`System.Threading.Tasks.Task<System.Boolean>`

### DownloadImageToCacheAsync

```csharp
Task<string> DownloadImageToCacheAsync(Uri uri)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.Uri` | *uri* |  |

##### Returns

`System.Threading.Tasks.Task<System.String>`

### DownloadImageToCache

```csharp
string DownloadImageToCache(Uri uri)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.Uri` | *uri* |  |

##### Returns

`System.String`

### DownloadImagesToCacheAsync

```csharp
Task DownloadImagesToCacheAsync(IEnumerable<string> urls)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.Collections.Generic.IEnumerable<System.String>` | *urls* |  |

##### Returns

`System.Threading.Tasks.Task`

### ValidateCachedImageAsync

```csharp
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

```csharp
Task<WebImageMetadata> GetImageMetadataAsync(Uri uri)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.Uri` | *uri* |  |

##### Returns

`System.Threading.Tasks.Task<Aurigma.DesignAtoms.Services.RemoteImageLoader.WebImageMetadata>`

### DownloadImageToStreamAsync

```csharp
Task<Stream> DownloadImageToStreamAsync(Uri uri)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.Uri` | *uri* |  |

##### Returns

`System.Threading.Tasks.Task<System.IO.Stream>`
