New test.
[mono.git] / mcs / class / System.Transactions / System.Transactions / DependentTransaction.cs
1 //
2 // DependentTransaction.cs
3 //
4 // Author:
5 //      Atsushi Enomoto  <atsushi@ximian.com>
6 //
7 // (C)2005 Novell Inc,
8 //
9
10 #if NET_2_0
11 using System.Runtime.Serialization;
12
13 namespace System.Transactions
14 {
15         [MonoTODO ("Not supported yet")]
16         [Serializable]
17         public sealed class DependentTransaction : Transaction, ISerializable
18         {
19                 Transaction parent;
20                 DependentCloneOption option;
21                 bool completed;
22
23                 internal DependentTransaction (Transaction parent,
24                         DependentCloneOption option)
25                 {
26                         this.parent = parent;
27                         this.option = option;
28                 }
29
30                 internal bool Completed {
31                         get { return completed; }
32                 }
33
34                 [MonoTODO]
35                 public void Complete ()
36                 {
37                         throw new NotImplementedException ();
38                         completed = true;
39                 }
40
41                 void ISerializable.GetObjectData (SerializationInfo info,
42                         StreamingContext context)
43                 {
44                         parent = (Transaction) info.GetValue ("parent", typeof (Transaction));
45                         option = (DependentCloneOption) info.GetValue (
46                                 "option", typeof (DependentCloneOption));
47                         completed = info.GetBoolean ("completed");
48                 }
49         }
50 }
51
52 #endif