Path: redb-route/redb.Route/Abstractions/ITransactedAction.cs
Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route
Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route/Abstractions/ITransactedAction.cs
----
namespace redb.Route.Abstractions;
///
/// Represents a transacted action that can be committed or rolled back.
/// Used for deferred-commit transaction pattern across brokers.
///
public interface ITransactedAction
{
/// Commits the transaction.
/// Cancellation token.
Task Commit(CancellationToken ct = default);
/// Rolls back the transaction.
/// Cancellation token.
Task Rollback(CancellationToken ct = default);
}