---
title: "Interface IRepositoryFileProtector | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Storage.Repositories.Interfaces.Protectors/IRepositoryFileProtector/"
---

# Interface IRepositoryFileProtector

> `System.Boolean`

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

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

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

## Methods

### IsProtected

```csharp
bool IsProtected(StorageFileInfoModel storageFileInfoModel)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `Aurigma.DesignAtoms.Storages.Abstractions.Models.StorageFileInfoModel` | *storageFileInfoModel* |  |

##### Returns

### IsProtectedAsync

```csharp
Task<bool> IsProtectedAsync(StorageFileInfoModel storageFileInfoModel)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `Aurigma.DesignAtoms.Storages.Abstractions.Models.StorageFileInfoModel` | *storageFileInfoModel* |  |

##### Returns

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

### SetProtection

```csharp
void SetProtection(StorageFileInfoModel storageFileInfoModel, bool isProtected)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `Aurigma.DesignAtoms.Storages.Abstractions.Models.StorageFileInfoModel` | *storageFileInfoModel* |  |
| `System.Boolean` | *isProtected* |  |

### SetProtectionAsync

```csharp
Task SetProtectionAsync(StorageFileInfoModel storageFileInfoModel, bool isProtected)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `Aurigma.DesignAtoms.Storages.Abstractions.Models.StorageFileInfoModel` | *storageFileInfoModel* |  |
| `System.Boolean` | *isProtected* |  |

##### Returns

`System.Threading.Tasks.Task`

### AddFileProtectionProvider

```csharp
void AddFileProtectionProvider(IRepositoryFileProtectionProvider fileProtectionProvider)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| [Aurigma.DesignAtoms.Storage.Repositories.Interfaces.Protectors.IRepositoryFileProtectionProvider](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Storage.Repositories.Interfaces.Protectors/IRepositoryFileProtectionProvider.md) | *fileProtectionProvider* |  |
