Update mcs/class/Commons.Xml.Relaxng/Commons.Xml.Relaxng/RelaxngPattern.cs
[mono.git] / mcs / class / System.Transactions / System.Transactions / SinglePhaseEnlistment.cs
1 //
2 // SinglePhaseEnlistment.cs
3 //
4 // Author:
5 //      Atsushi Enomoto  <atsushi@ximian.com>
6 //      Ankit Jain       <JAnkit@novell.com>
7 //
8 // (C)2005 Novell Inc,
9 // (C)2006 Novell Inc,
10 //
11
12 #if NET_2_0
13
14 namespace System.Transactions
15 {
16         public class SinglePhaseEnlistment : Enlistment
17         {
18 //              bool committed;
19                 Transaction tx;
20                 ISinglePhaseNotification enlisted;
21                 
22                 internal SinglePhaseEnlistment (Transaction tx, ISinglePhaseNotification enlisted)
23                 {
24                         this.tx = tx;
25                         this.enlisted = enlisted;
26                 }
27
28                 public void Aborted ()
29                 {
30                         Aborted (null);
31                 }
32
33                 public void Aborted (Exception e)
34                 {
35                         tx.Rollback (e, enlisted);
36                 }
37
38                 [MonoTODO]
39                 public void Committed ()
40                 {
41                         /* FIXME */
42 //                      committed = true;
43                 }
44
45                 [MonoTODO ("Not implemented")]
46                 public void InDoubt ()
47                 {
48                         throw new NotImplementedException ();
49                 }
50
51                 [MonoTODO ("Not implemented")]
52                 public void InDoubt (Exception e)
53                 {
54                         throw new NotImplementedException ();
55                 }
56         }
57 }
58
59 #endif