File tree Expand file tree Collapse file tree 3 files changed +22
-4
lines changed
src/libraries/System.Transactions.Local
src/System/Transactions/DtcProxyShim/DtcInterfaces Expand file tree Collapse file tree 3 files changed +22
-4
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,15 @@ namespace System.Transactions.DtcProxyShim.DtcInterfaces;
1111[ ComImport , Guid ( Guids . IID_ITransaction ) , InterfaceType ( ComInterfaceType . InterfaceIsIUnknown ) ]
1212internal interface ITransaction
1313{
14- void Commit ( [ MarshalAs ( UnmanagedType . Bool ) ] bool fRetainingt , [ MarshalAs ( UnmanagedType . U4 ) ] OletxXacttc grfTC , uint grfRM ) ;
14+ void Commit (
15+ [ MarshalAs ( UnmanagedType . Bool ) ] bool fRetainingt ,
16+ [ MarshalAs ( UnmanagedType . U4 ) ] OletxXacttc grfTC ,
17+ uint grfRM ) ;
1518
16- void Abort ( IntPtr reason , [ MarshalAs ( UnmanagedType . Bool ) ] bool retaining , [ MarshalAs ( UnmanagedType . Bool ) ] bool async ) ;
19+ void Abort (
20+ IntPtr reason ,
21+ [ MarshalAs ( UnmanagedType . Bool ) ] bool retaining ,
22+ [ MarshalAs ( UnmanagedType . Bool ) ] bool async ) ;
1723
1824 void GetTransactionInfo ( out OletxXactTransInfo xactInfo ) ;
1925}
Original file line number Diff line number Diff line change @@ -10,5 +10,17 @@ namespace System.Transactions.DtcProxyShim.DtcInterfaces;
1010[ ComImport , Guid ( "02656950-2152-11d0-944C-00A0C905416E" ) , InterfaceType ( ComInterfaceType . InterfaceIsIUnknown ) ]
1111internal interface ITransactionCloner
1212{
13+ void Commit (
14+ [ MarshalAs ( UnmanagedType . Bool ) ] bool fRetainingt ,
15+ [ MarshalAs ( UnmanagedType . U4 ) ] OletxXacttc grfTC ,
16+ uint grfRM ) ;
17+
18+ void Abort (
19+ IntPtr reason ,
20+ [ MarshalAs ( UnmanagedType . Bool ) ] bool retaining ,
21+ [ MarshalAs ( UnmanagedType . Bool ) ] bool async ) ;
22+
23+ void GetTransactionInfo ( out OletxXactTransInfo xactInfo ) ;
24+
1325 void CloneWithCommitDisabled ( [ MarshalAs ( UnmanagedType . Interface ) ] out ITransaction ppITransaction ) ;
1426}
Original file line number Diff line number Diff line change @@ -433,8 +433,8 @@ public void GetExportCookie()
433433 Assert . Equal ( tx . TransactionInformation . DistributedIdentifier , tx2 . TransactionInformation . DistributedIdentifier ) ;
434434 } ) ;
435435
436- // Test currently skipped, #74745
437- private void GetDtcTransaction ( )
436+ [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsNotWindowsNanoServer ) ) ]
437+ public void GetDtcTransaction ( )
438438 => Test ( ( ) =>
439439 {
440440 using var tx = new CommittableTransaction ( ) ;
You can’t perform that action at this time.
0 commit comments