LongLivedMarshalByRefObject
A MarshalByRefObject that lives forever
using System;
using System.Runtime.CompilerServices;
namespace NUnit.Compatibility
{
public class LongLivedMarshalByRefObject : MarshalByRefObject
{
[NullableContext(1)]
[Obsolete("Preventing throwing PlatformNotSupportedException")]
public override object InitializeLifetimeService()
{
return null;
}
}
}