Interface IFileStore
Interface for a file store.
Namespace: DataWeb.Media
Assembly: DataWeb.Core.dll
Syntax
public interface IFileStore
Properties
Name
Gets the name of the file store.
Declaration
string Name { get; }
Property Value
Type |
---|
string |
Methods
GetFileAsync(FileFilter)
Gets a file that matches the specified filter.
Declaration
Task<FileData> GetFileAsync(FileFilter filter)
Parameters
Type | Name | Description |
---|---|---|
FileFilter | filter | The FileFilter to apply to the file. |
Returns
Type | Description |
---|---|
Task<FileData> | The file data that match the filter. |
GetFilesAsync(FileFilter)
Gets a collection of files that match the specified filter.
Declaration
Task<IEnumerable<FileData>> GetFilesAsync(FileFilter filter)
Parameters
Type | Name | Description |
---|---|---|
FileFilter | filter | The cref="FileFilter"/> to apply to the files. |
Returns
Type | Description |
---|---|
Task<IEnumerable<FileData>> | A collection of file data that match the filter. |
UpdateIsInStorage(string, bool)
Updates the IsInStorage property of the file with the specified IdMaster.
Declaration
Task UpdateIsInStorage(string fileIdMaster, bool isInStorage)
Parameters
Type | Name | Description |
---|---|---|
string | fileIdMaster | The IdMaster of the file to update. |
bool | isInStorage | The value to set for the IsInStorage property. |
Returns
Type | Description |
---|---|
Task |