diff options
author | Alexander Köplinger <alex.koeplinger@outlook.com> | 2017-01-20 05:06:05 +0300 |
---|---|---|
committer | Alexander Köplinger <alex.koeplinger@outlook.com> | 2017-01-20 05:07:36 +0300 |
commit | 59af66cfe9a73eb3f6cd2b41bffbd84f6dd746c9 (patch) | |
tree | aed11b5e6619ede84729aa4bb168c4c4e7f2e81a /mcs/class/System.Transactions | |
parent | fd291407355e137feae7258e797cffb086d077f0 (diff) |
[System.Transactions] Add stubs and visibility fixes for netstandard20 APIs
Diffstat (limited to 'mcs/class/System.Transactions')
8 files changed, 48 insertions, 6 deletions
diff --git a/mcs/class/System.Transactions/System.Transactions/Delegates.cs b/mcs/class/System.Transactions/System.Transactions/Delegates.cs index e4994474eeb..ad2c95b6bd0 100644 --- a/mcs/class/System.Transactions/System.Transactions/Delegates.cs +++ b/mcs/class/System.Transactions/System.Transactions/Delegates.cs @@ -11,9 +11,9 @@ namespace System.Transactions { public delegate Transaction HostCurrentTransactionCallback (); - public delegate void TransactionCompletedEventHandler (object o, + public delegate void TransactionCompletedEventHandler (object sender, TransactionEventArgs e); - public delegate void TransactionStartedEventHandler (object o, + public delegate void TransactionStartedEventHandler (object sender, TransactionEventArgs e); } diff --git a/mcs/class/System.Transactions/System.Transactions/Transaction.cs b/mcs/class/System.Transactions/System.Transactions/Transaction.cs index 796cb462c55..20c31072d9b 100644 --- a/mcs/class/System.Transactions/System.Transactions/Transaction.cs +++ b/mcs/class/System.Transactions/System.Transactions/Transaction.cs @@ -189,6 +189,26 @@ namespace System.Transactions return true; } + public void SetDistributedTransactionIdentifier (IPromotableSinglePhaseNotification promotableNotification, Guid distributedTransactionIdentifier) + { + throw new NotImplementedException (); + } + + public bool EnlistPromotableSinglePhase (IPromotableSinglePhaseNotification promotableSinglePhaseNotification, Guid promoterType) + { + throw new NotImplementedException (); + } + + public byte[] GetPromotedToken () + { + throw new NotImplementedException (); + } + + public Guid PromoterType + { + get { throw new NotImplementedException (); } + } + [MonoTODO ("EnlistmentOptions being ignored")] public Enlistment EnlistVolatile ( IEnlistmentNotification notification, diff --git a/mcs/class/System.Transactions/System.Transactions/TransactionException.cs b/mcs/class/System.Transactions/System.Transactions/TransactionException.cs index d6e3746c664..00212882a78 100644 --- a/mcs/class/System.Transactions/System.Transactions/TransactionException.cs +++ b/mcs/class/System.Transactions/System.Transactions/TransactionException.cs @@ -14,7 +14,7 @@ namespace System.Transactions [Serializable] public class TransactionException : SystemException { - protected TransactionException () + public TransactionException () { } diff --git a/mcs/class/System.Transactions/System.Transactions/TransactionInDoubtException.cs b/mcs/class/System.Transactions/System.Transactions/TransactionInDoubtException.cs index aacc09eb348..552ea008561 100644 --- a/mcs/class/System.Transactions/System.Transactions/TransactionInDoubtException.cs +++ b/mcs/class/System.Transactions/System.Transactions/TransactionInDoubtException.cs @@ -14,7 +14,7 @@ namespace System.Transactions [Serializable] public class TransactionInDoubtException : TransactionException { - protected TransactionInDoubtException () + public TransactionInDoubtException () { } diff --git a/mcs/class/System.Transactions/System.Transactions/TransactionInterop.cs b/mcs/class/System.Transactions/System.Transactions/TransactionInterop.cs index ddfe11f1d8a..a764cf6e096 100644 --- a/mcs/class/System.Transactions/System.Transactions/TransactionInterop.cs +++ b/mcs/class/System.Transactions/System.Transactions/TransactionInterop.cs @@ -15,6 +15,8 @@ namespace System.Transactions [MonoTODO] public static class TransactionInterop { + public static readonly Guid PromoterTypeDtc = new Guid ("14229753-FFE1-428D-82B7-DF73045CB8DA"); + [MonoTODO] public static IDtcTransaction GetDtcTransaction (Transaction transaction) { diff --git a/mcs/class/System.Transactions/System.Transactions/TransactionManagerCommunicationException.cs b/mcs/class/System.Transactions/System.Transactions/TransactionManagerCommunicationException.cs index b0e07110bb6..2cec4a84a9c 100644 --- a/mcs/class/System.Transactions/System.Transactions/TransactionManagerCommunicationException.cs +++ b/mcs/class/System.Transactions/System.Transactions/TransactionManagerCommunicationException.cs @@ -14,7 +14,7 @@ namespace System.Transactions [Serializable] public class TransactionManagerCommunicationException : TransactionException { - protected TransactionManagerCommunicationException () + public TransactionManagerCommunicationException () { } diff --git a/mcs/class/System.Transactions/System.Transactions/TransactionPromotionException.cs b/mcs/class/System.Transactions/System.Transactions/TransactionPromotionException.cs index 5aba17b38a1..bcd5f3f193d 100644 --- a/mcs/class/System.Transactions/System.Transactions/TransactionPromotionException.cs +++ b/mcs/class/System.Transactions/System.Transactions/TransactionPromotionException.cs @@ -14,7 +14,7 @@ namespace System.Transactions [Serializable] public class TransactionPromotionException : TransactionException { - protected TransactionPromotionException () + public TransactionPromotionException () { } diff --git a/mcs/class/System.Transactions/System.Transactions/TransactionScope.cs b/mcs/class/System.Transactions/System.Transactions/TransactionScope.cs index 167d47e8d3a..ac57713b59d 100644 --- a/mcs/class/System.Transactions/System.Transactions/TransactionScope.cs +++ b/mcs/class/System.Transactions/System.Transactions/TransactionScope.cs @@ -102,6 +102,26 @@ namespace System.Transactions TransactionManager.DefaultTimeout, TransactionScopeAsyncFlowOption.Suppress); } + public TransactionScope (Transaction transactionToUse, + TransactionScopeAsyncFlowOption asyncFlowOption) + { + throw new NotImplementedException (); + } + + public TransactionScope (Transaction transactionToUse, + TimeSpan scopeTimeout, + TransactionScopeAsyncFlowOption asyncFlowOption) + { + throw new NotImplementedException (); + } + + public TransactionScope (TransactionScopeOption scopeOption, + TransactionOptions transactionOptions, + TransactionScopeAsyncFlowOption asyncFlowOption) + { + throw new NotImplementedException (); + } + void Initialize (TransactionScopeOption scopeOption, Transaction tx, TransactionOptions options, DTCOption interop, TimeSpan timeout, TransactionScopeAsyncFlowOption asyncFlow) |