Skip to content

Outbox implementation with TransactionScope #99

@JornWildt

Description

@JornWildt

The current Outbox implementation requires both an SqlConnection as well as an SqlTransaction as shown on https://github.com/rebus-org/Rebus/wiki/Outbox :

using var connection = GetSqlConnection();
using var transaction = connection.BeginTransaction();
using var scope = new RebusTransactionScope();

// and then enable the outbox for that scope
scope.UseOutbox(connection, transaction);

Unfortunately I work with a framework that uses TransactionScope - and I have found no way to get the SqlTransaction out of that.

Is there any way to get SqlTransaction out of SqlConnection (I haven't found one)?

Would it be possible to expand the Outbox implementation to work with TransactionScope in addition to SqlTransaction?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions