Add Nunit2
[mono.git] / mcs / nunit20 / framework / LongLivingMarshalByRefObject.cs
1 using System;
2
3 namespace NUnit.Core
4 {
5         /// <summary>
6         /// All objects which are marshalled by reference
7         /// and whose lifetime is manually controlled by
8         /// the app, should derive from this class rather
9         /// than MarshalByRefObject.
10         /// 
11         /// This includes the remote test domain objects
12         /// which are accessed by the client and those
13         /// client objects which are called back by the
14         /// remote test domain.
15         /// 
16         /// Objects in this category that already inherit
17         /// from some other class (e.g. from TextWriter)
18         /// which in turn inherits from MarshalByRef object 
19         /// should override InitializeLifetimeService to 
20         /// return null to obtain the same effect.
21         /// </summary>
22         public class LongLivingMarshalByRefObject : MarshalByRefObject
23         {
24                 public override Object InitializeLifetimeService()
25                 {
26                         return null;
27                 }
28         }
29 }