Skip to content

Add transaction flow support to NetNamedPipeBinding #6014

Open

Description

@VitezslavImrysek

Motivation

When migrating a .NET Framework WCF client to modern .NET, a client that calls a transaction-enabled service over net.pipe cannot carry over its NetNamedPipeBinding.TransactionFlow and TransactionProtocol settings. The .NET Framework binding exposes both properties. The transaction support added in #5926 covers NetTcpBinding and WSHttpBinding. .NET Framework API reference

Proposal

Expose TransactionFlow and TransactionProtocol on NetNamedPipeBinding and reuse the existing client transaction flow implementation. When the binding and operation contract allow transaction flow, the client can propagate its ambient transaction to the service over the named pipe.

var binding = new NetNamedPipeBinding
{
    TransactionFlow = true,
    TransactionProtocol = TransactionProtocol.OleTransactions
};

Match the .NET Framework defaults. TransactionFlow defaults to false, and TransactionProtocol defaults to TransactionProtocol.OleTransactions.

Related to #289.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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