Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
<Import Project="..\Directory.Build.props" />
<PropertyGroup>
<StrongNameKeyId>Open</StrongNameKeyId>
<IncludePlatformAttributes>true</IncludePlatformAttributes>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ internal TransactionInformation() { }
public string LocalIdentifier { get { throw null; } }
public System.Transactions.TransactionStatus Status { get { throw null; } }
}
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("browser")]
public static partial class TransactionInterop
{
public static readonly System.Guid PromoterTypeDtc;
Expand All @@ -191,7 +192,9 @@ public static partial class TransactionManager
public static System.Transactions.HostCurrentTransactionCallback? HostCurrentCallback { get { throw null; } set { } }
public static System.TimeSpan MaximumTimeout { get { throw null; } }
public static event System.Transactions.TransactionStartedEventHandler? DistributedTransactionStarted { add { } remove { } }
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("browser")]
public static void RecoveryComplete(System.Guid resourceManagerIdentifier) { }
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("browser")]
public static System.Transactions.Enlistment Reenlist(System.Guid resourceManagerIdentifier, byte[] recoveryInformation, System.Transactions.IEnlistmentNotification enlistmentNotification) { throw null; }
}
public partial class TransactionManagerCommunicationException : System.Transactions.TransactionException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using System.Transactions.Distributed;

namespace System.Transactions
Expand All @@ -18,6 +19,7 @@ public interface IDtcTransaction
void GetTransactionInfo(IntPtr transactionInformation);
}

[UnsupportedOSPlatform("browser")]
public static class TransactionInterop
{
internal static DistributedTransaction ConvertToDistributedTransaction(Transaction transaction)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using System.Collections;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Runtime.Versioning;
using System.Threading;
using System.Transactions.Configuration;
using System.Transactions.Distributed;
Expand Down Expand Up @@ -128,6 +129,7 @@ public static HostCurrentTransactionCallback? HostCurrentCallback
}
}

[UnsupportedOSPlatform("browser")]
public static Enlistment Reenlist(
Guid resourceManagerIdentifier,
byte[] recoveryInformation,
Expand Down Expand Up @@ -237,6 +239,7 @@ private static DistributedTransactionManager CheckTransactionManager(string? nod
return tm;
}

[UnsupportedOSPlatform("browser")]
public static void RecoveryComplete(Guid resourceManagerIdentifier)
{
if (resourceManagerIdentifier == Guid.Empty)
Expand Down