Interface IRepositoryFileProtectionProvider
Namespace: Aurigma.DesignAtoms.Storage.Repositories.Interfaces.Protectors
Assembly: Aurigma.DesignAtoms.dll
Syntax
public interface IRepositoryFileProtectionProvider
Methods
IsProtected
bool IsProtected(string fileId)
Parameters
| Type | Name | Description |
|---|---|---|
System.String | fileId |
Returns
System.Boolean
IsProtectedAsync
Task<bool> IsProtectedAsync(string fileId)
Parameters
| Type | Name | Description |
|---|---|---|
System.String | fileId |
Returns
System.Threading.Tasks.Task<System.Boolean>
TrySetProtection
bool TrySetProtection(string fileId, bool isProtected)
Parameters
| Type | Name | Description |
|---|---|---|
System.String | fileId | |
System.Boolean | isProtected |
Returns
System.Boolean
TrySetProtectionAsync
Task<bool> TrySetProtectionAsync(string fileId, bool isProtected)
Parameters
| Type | Name | Description |
|---|---|---|
System.String | fileId | |
System.Boolean | isProtected |
Returns
System.Threading.Tasks.Task<System.Boolean>