FulcrumFS FulcrumFS
FulcrumFS FulcrumFS
DocFX + Singulink = ♥

Search Results for

    Class FileRepoTransaction

    Represents a transaction for a file repository, allowing changes to be committed or rolled back.

    Inheritance
    object
    FileRepoTransaction
    Implements
    IAsyncDisposable
    Namespace: FulcrumFS
    Assembly: FulcrumFS.dll
    Syntax
    public sealed class FileRepoTransaction : IAsyncDisposable

    Properties

    Name Description
    Repository

    Gets the file repository associated with this transaction.

    Methods

    Name Description
    AddAsync(FileStream, bool, IFileProcessingPipelineSelector, CancellationToken)

    Adds a new file to the repository with the specified file stream, processing it through the specified file pipeline.

    AddAsync(Stream, string, bool, IFileProcessingPipelineSelector, CancellationToken)

    Adds a new file to the repository with the specified stream and extension, processing it through the specified file pipeline.

    CommitAsync(CancellationToken)

    Commits the transaction, making all file additions and deletion made during the transaction permanent in the repository.

    DeleteAsync(FileId, CancellationToken)

    Deletes an existing or tentatively added file from the repository by its file ID.

    DisposeAsync()

    Disposes the transaction, rolling back any changes that were not already committed.

    RollbackAsync(CancellationToken)

    Rolls back the transaction, discarding any file additions or deletions made during the transaction.

    © Singulink. All rights reserved.