Interface IRepositoryFileProtector
Namespace: Aurigma.DesignAtoms.Storage.Repositories.Interfaces.Protectors
Assembly: Aurigma.DesignAtoms.dll
Syntax
public interface IRepositoryFileProtector
Methods
IsProtected
bool IsProtected(StorageFileInfoModel storageFileInfoModel)
Parameters
| Type | Name | Description |
|---|---|---|
Aurigma.DesignAtoms.Storages.Abstractions.Models.StorageFileInfoModel | storageFileInfoModel |
Returns
System.Boolean
IsProtectedAsync
Task<bool> IsProtectedAsync(StorageFileInfoModel storageFileInfoModel)
Parameters
| Type | Name | Description |
|---|---|---|
Aurigma.DesignAtoms.Storages.Abstractions.Models.StorageFileInfoModel | storageFileInfoModel |
Returns
System.Threading.Tasks.Task<System.Boolean>
SetProtection
void SetProtection(StorageFileInfoModel storageFileInfoModel, bool isProtected)
Parameters
| Type | Name | Description |
|---|---|---|
Aurigma.DesignAtoms.Storages.Abstractions.Models.StorageFileInfoModel | storageFileInfoModel | |
System.Boolean | isProtected |
SetProtectionAsync
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
void AddFileProtectionProvider(IRepositoryFileProtectionProvider fileProtectionProvider)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Storage.Repositories.Interfaces.Protectors.IRepositoryFileProtectionProvider | fileProtectionProvider |