FulcrumFS FulcrumFS
FulcrumFS FulcrumFS
DocFX + Singulink = ♥

Search Results for

    Method RollbackAsync

    RollbackAsync(CancellationToken)

    Rolls back the transaction, discarding the files it added and the deletions it recorded. The transaction cannot be used afterwards.

    Declaration
    Task RollbackAsync(CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    CancellationToken cancellationToken

    A cancellation token that cancels the operation.

    Returns
    Type Description
    Task
    Remarks

    Rolling back is possible before and after staging. Once CommitAsync(CancellationToken) has been called, this method does nothing, because the application has committed its database by then.

    A failure to roll back an individual file is not thrown: the file is left for the cleaner and the failure is reported through TransactionCompletionFailed.

    © Singulink. All rights reserved.