Skip to content

Allow connection/transaction to be passed from the outside when opening the session #116

@SzymonPobiega

Description

@SzymonPobiega

In some brown field scenarios the connections are managed by the existing infrastructure and changing that is not feasible. In order to use Transactional Session in these cases it is necessary to be able to pass the connection/transaction information from the outside when opening the session e.g.

using var childBuilder = builder.CreateChildBuilder();
var session = childBuilder.Build<ITransactionalSession>();
await session.Open(
        new SqlPersistenceOpenSessionOptions(("MyTenantIdHeader","TenantA"), sqlTransaction))
    .ConfigureAwait(false);

Metadata

Metadata

Assignees

No one assigned

    Labels

    ImprovementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions