コード例 #1
0
        public override void RunTest()
        {
            var access2 = (MarshalByRefCrossAccess2)_remoteDomain.CreateInstanceAndUnwrap
                              (typeof(MarshalByRefCrossAccess2).Assembly.FullName, typeof(MarshalByRefCrossAccess2).FullName);
            var access1 = new MarshalByRefCrossAccess1();

            access2.Run(access1);
        }
コード例 #2
0
 public void Run(MarshalByRefCrossAccess1 arg)
 {
     Console.WriteLine("Currently, we are running in AppDomain [{0}]: ", AppDomain.CurrentDomain.FriendlyName);
     arg.Run();
 }