-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port distributed transaction support for Windows (#72051)
Closes #715
- Loading branch information
Showing
77 changed files
with
10,091 additions
and
755 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
405 changes: 367 additions & 38 deletions
405
src/libraries/System.Transactions.Local/src/Resources/Strings.resx
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
166 changes: 0 additions & 166 deletions
166
src/libraries/System.Transactions.Local/src/System/Transactions/DistributedTransaction.cs
This file was deleted.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
...tem.Transactions.Local/src/System/Transactions/DtcProxyShim/DtcInterfaces/IPrepareInfo.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using System; | ||
using System.Runtime.InteropServices; | ||
|
||
namespace System.Transactions.DtcProxyShim.DtcInterfaces; | ||
|
||
// https://docs.microsoft.com/previous-versions/windows/desktop/ms686533(v=vs.85) | ||
[ComImport, Guid("80c7bfd0-87ee-11ce-8081-0080c758527e"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] | ||
internal interface IPrepareInfo | ||
{ | ||
void GetPrepareInfoSize(out uint pcbPrepInfo); | ||
|
||
void GetPrepareInfo([MarshalAs(UnmanagedType.LPArray), Out] byte[] pPrepInfo); | ||
} |
30 changes: 30 additions & 0 deletions
30
...Transactions.Local/src/System/Transactions/DtcProxyShim/DtcInterfaces/IResourceManager.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using System.Runtime.InteropServices; | ||
|
||
namespace System.Transactions.DtcProxyShim.DtcInterfaces; | ||
|
||
// https://docs.microsoft.com/previous-versions/windows/desktop/ms681790(v=vs.85) | ||
[ComImport, Guid(Guids.IID_IResourceManager), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] | ||
internal interface IResourceManager | ||
{ | ||
internal void Enlist( | ||
[MarshalAs(UnmanagedType.Interface)] ITransaction pTransaction, | ||
[MarshalAs(UnmanagedType.Interface)] ITransactionResourceAsync pRes, | ||
out Guid pUOW, | ||
out OletxTransactionIsolationLevel pisoLevel, | ||
[MarshalAs(UnmanagedType.Interface)] out ITransactionEnlistmentAsync ppEnlist); | ||
|
||
internal void Reenlist( | ||
[MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 1)] byte[] pPrepInfo, | ||
uint cbPrepInfom, | ||
uint lTimeout, | ||
[MarshalAs(UnmanagedType.I4)] out OletxXactStat pXactStat); | ||
|
||
void ReenlistmentComplete(); | ||
|
||
void GetDistributedTransactionManager( | ||
in Guid riid, | ||
[MarshalAs(UnmanagedType.Interface)] out object ppvObject); | ||
} |
Oops, something went wrong.