Interface IFileService
- Namespace
- adas_core.Application.Services.Interfaces
- Assembly
- adas-core.Application.dll
public interface IFileService
- Extension Methods
Methods
CopyUpdateFiles(ICollection<IFormFile>)
Copies the provided update files to the appropriate location for processing or deployment.
Task<bool> CopyUpdateFiles(ICollection<IFormFile> files)
Parameters
filesICollection<IFormFile>The collection of update files to be copied.
Returns
- Task<bool>
A task that represents the asynchronous operation. The task result contains a boolean value indicating whether the copy operation succeeded.
GetAllAssetFile(AssetTheme)
Retrieves all asset files for the specified asset theme as a list of asset data transfer objects.
List<AssetDto> GetAllAssetFile(FileEnum.AssetTheme themeParse)
Parameters
themeParseFileEnum.AssetThemeThe asset theme used to retrieve the corresponding assets.
Returns
GetFilesInDirectory(string)
Retrieves a list of file names from the specified directory path.
List<string> GetFilesInDirectory(string directoryPath)
Parameters
directoryPathstringThe path of the directory from which to retrieve the files.
Returns
UploadAssetFiles(ICollection<IFormFile>, AssetTheme)
Uploads the provided asset files categorized by the specified theme, returning a value indicating whether the operation completed successfully.
Task<bool> UploadAssetFiles(ICollection<IFormFile> files, FileEnum.AssetTheme themeParse)
Parameters
filesICollection<IFormFile>The collection of uploaded form files to process and store as assets.
themeParseFileEnum.AssetThemeThe asset theme used to classify and organize the uploaded files.