Search Results for

    Show / Hide Table of Contents

    Interface IFileService

    Defines the contract for file management operations in the OEMS system.

    Namespace: OEMS.Core.Application.ApplicationServiceInterfaces
    Assembly: OEMS.Core.dll
    Syntax
    public interface IFileService

    Methods

    AttachExistingFileToProcessStepAsync(Guid, Guid, Guid)

    Attaches an existing file to a process step.

    Declaration
    Task AttachExistingFileToProcessStepAsync(Guid fileId, Guid processStepId, Guid uploaderId)
    Parameters
    Type Name Description
    Guid fileId

    The unique identifier of the file to attach.

    Guid processStepId

    The unique identifier of the process step.

    Guid uploaderId

    The unique identifier of the user performing the attachment.

    Returns
    Type Description
    Task

    A task that represents the asynchronous operation.

    DeleteFileFromEventAsync(Guid)

    Deletes a file from an event.

    Declaration
    Task DeleteFileFromEventAsync(Guid fileId)
    Parameters
    Type Name Description
    Guid fileId

    The unique identifier of the file to delete.

    Returns
    Type Description
    Task

    A task that represents the asynchronous operation.

    GetEventFilesForEventAsync(Guid)

    Retrieves all files associated with a specific event.

    Declaration
    Task<List<EventFileDto>> GetEventFilesForEventAsync(Guid eventId)
    Parameters
    Type Name Description
    Guid eventId

    The unique identifier of the event.

    Returns
    Type Description
    Task<List<EventFileDto>>

    A task that represents the asynchronous operation. The task result contains a list of event file data transfer objects.

    GetFileAsync(Guid)

    Retrieves a file for download.

    Declaration
    Task<FileDownloadDto> GetFileAsync(Guid fileId)
    Parameters
    Type Name Description
    Guid fileId

    The unique identifier of the file to retrieve.

    Returns
    Type Description
    Task<FileDownloadDto>

    A task that represents the asynchronous operation. The task result contains the file download data transfer object.

    GetLogoUrl(Guid)

    Retrieves the URL for a logo file.

    Declaration
    Task<string> GetLogoUrl(Guid fileId)
    Parameters
    Type Name Description
    Guid fileId

    The unique identifier of the logo file.

    Returns
    Type Description
    Task<string>

    A task that represents the asynchronous operation. The task result contains the URL of the logo file.

    UploadFilesAsync(FileDto, Guid, Guid)

    Uploads a file to the storage system

    Declaration
    Task<File> UploadFilesAsync(FileDto dto, Guid eventId, Guid uploaderId)
    Parameters
    Type Name Description
    FileDto dto
    Guid eventId
    Guid uploaderId
    Returns
    Type Description
    Task<File>

    The ID of the uploaded file

    UploadOrganizationLogoAsync(FileDto)

    Uploads an organization logo file

    Declaration
    Task<File> UploadOrganizationLogoAsync(FileDto dto)
    Parameters
    Type Name Description
    FileDto dto

    File data to upload

    Returns
    Type Description
    Task<File>

    The uploaded file entity

    UploadProcessStepFileAsync(FileDto, Guid, Guid)

    Uploads a file for a specific process step.

    Declaration
    Task UploadProcessStepFileAsync(FileDto dto, Guid processStepId, Guid uploaderId)
    Parameters
    Type Name Description
    FileDto dto

    The file data transfer object containing file information.

    Guid processStepId

    The unique identifier of the process step.

    Guid uploaderId

    The unique identifier of the user uploading the file.

    Returns
    Type Description
    Task

    A task that represents the asynchronous operation.

    In this article
    Back to top Generated by DocFX