public override void RunTest() { var access2 = (MarshalByRefCrossAccess2)_remoteDomain.CreateInstanceAndUnwrap (typeof(MarshalByRefCrossAccess2).Assembly.FullName, typeof(MarshalByRefCrossAccess2).FullName); var access1 = new MarshalByRefCrossAccess1(); access2.Run(access1); }
public void Run(MarshalByRefCrossAccess1 arg) { Console.WriteLine("Currently, we are running in AppDomain [{0}]: ", AppDomain.CurrentDomain.FriendlyName); arg.Run(); }