merge -r 53370:58178
[mono.git] / mcs / class / System.Transactions / System.Transactions / TransactionManager.cs
1 //
2 // TransactionManager.cs
3 //
4 // Author:
5 //      Atsushi Enomoto  <atsushi@ximian.com>
6 //
7 // (C)2005 Novell Inc,
8 //
9 using System.Collections;
10 using System.Collections.Specialized;
11
12 #if NET_2_0
13
14 namespace System.Transactions
15 {
16         public static class TransactionManager
17         {
18                 // it could contain both Transaction and non-tx (Suppress).
19                 static Stack tx_states = new Stack ();
20
21                 [MonoTODO]
22                 public static TimeSpan DefaultTimeout {
23                         get { throw new NotImplementedException (); }
24                 }
25
26                 [MonoTODO]
27                 public static HostCurrentTransactionCallback HostCurrentCallback {
28                         get { throw new NotImplementedException (); }
29                         set { throw new NotImplementedException (); }
30                 }
31
32                 [MonoTODO]
33                 public static TimeSpan MaximumTimeout {
34                         get { throw new NotImplementedException (); }
35                 }
36
37                 [MonoTODO]
38                 public static void RecoveryComplete (Guid manager)
39                 {
40                         throw new NotImplementedException ();
41                 }
42
43                 [MonoTODO]
44                 public static Enlistment Reenlist (Guid manager,
45                         byte[] recoveryInfo,
46                         IEnlistmentNotification notification)
47                 {
48                         throw new NotImplementedException ();
49                 }
50
51                 public static event TransactionStartedEventHandler
52                         DistributedTransactionStarted;
53
54                 // internals
55                 internal static Transaction Current {
56                         get {
57                                 if (tx_states.Count == 0)
58                                         return null;
59                                 return tx_states.Peek () as Transaction;
60                         }
61                         set {
62                                 throw new NotImplementedException ();
63                         }
64                 }
65
66                 internal static void BeginScope (TransactionScope scope)
67                 {
68                         throw new NotImplementedException ();
69                 }
70
71                 internal static void EndScope (TransactionScope scope)
72                 {
73                         throw new NotImplementedException ();
74                 }
75         }
76 }
77
78 #endif