In .:
[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         [Serializable]
16         public sealed class DependentTransaction : Transaction, ISerializable
17         {
18                 Transaction parent;
19                 DependentCloneOption option;
20                 bool completed;
21
22                 internal DependentTransaction (Transaction parent,
23                         DependentCloneOption option)
24                 {
25                         this.parent = parent;
26                         this.option = option;
27                 }
28
29                 internal bool Completed {
30                         get { return completed; }
31                 }
32
33                 [MonoTODO]
34                 public void Complete ()
35                 {
36                         throw new NotImplementedException ();
37                         completed = true;
38                 }
39
40                 void ISerializable.GetObjectData (SerializationInfo info,
41                         StreamingContext context)
42                 {
43                         parent = (Transaction) info.GetValue ("parent", typeof (Transaction));
44                         option = (DependentCloneOption) info.GetValue (
45                                 "option", typeof (DependentCloneOption));
46                         completed = info.GetBoolean ("completed");
47                 }
48         }
49 }
50
51 #endif