Long living object. (Extracted from NUnit source)

Namespace:  MbUnit.Core.Remoting
Assembly:  MbUnit.Framework (in MbUnit.Framework.dll) Version: 2.4.2.1514 (2.4.2.1514)

Syntax

C#
public class LongLivingMarshalByRefObject : MarshalByRefObject
Visual Basic (Declaration)
Public Class LongLivingMarshalByRefObject _
	Inherits MarshalByRefObject

Remarks

All objects which are marshalled by reference and whose lifetime is manually controlled by the app, should derive from this class rather than MarshalByRefObject.

This includes the remote test domain objects which are accessed by the client and those client objects which are called back by the remote test domain.

Objects in this category that already inherit from some other class (e.g. from TextWriter) which in turn inherits from MarshalByRef object should override InitializeLifetimeService to return null to obtain the same effect.

Original code from NUnit. Portions Copyright © 2003 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov, Charlie Poole

Inheritance Hierarchy

See Also