private bool MarshalMBROByRef() { MyMarshalByRefObject mbro = new MyMarshalByRefObject(); MyMarshalByRefObject mbro2 = new MyMarshalByRefObject(); m_mbroProxy.MarshalMBROByRef(ref mbro, mbro2); return(Object.ReferenceEquals(mbro, mbro2)); }
private void Initialize() { string szAssm = typeof(AppDomainTest).Assembly.FullName; m_appDomain = AppDomain.CreateDomain(this.GetType().FullName); m_appDomain.Load(szAssm); m_mbroProxy = (MyMarshalByRefObject)m_appDomain.CreateInstanceAndUnwrap(szAssm, typeof(MyMarshalByRefObject).FullName); m_mbro = new MyMarshalByRefObject(); }
private void Uninitialize() { if (m_appDomain != null) { AppDomain.Unload(m_appDomain); m_appDomain = null; m_mbro = null; m_mbroProxy = null; Debug.GC(true); } }
public void MarshalMBROByRef(ref MyMarshalByRefObject mbro, MyMarshalByRefObject mbro2) { mbro = mbro2; }
public MyMarshalByRefObject MarshalMBRO(MyMarshalByRefObject mbro) { return(mbro); }
public void MarshalDeadProxy(MyMarshalByRefObject mbro) { }
public void MarshalDyingProxy(MyMarshalByRefObject mbro) { }
public void MarshalDyingProxy( MyMarshalByRefObject mbro ) { }
private bool MarshalMBROByRef() { MyMarshalByRefObject mbro = new MyMarshalByRefObject(); MyMarshalByRefObject mbro2 = new MyMarshalByRefObject(); m_mbroProxy.MarshalMBROByRef( ref mbro, mbro2 ); return Object.ReferenceEquals( mbro, mbro2 ); }
private void Uninitialize() { if(m_appDomain != null) { AppDomain.Unload( m_appDomain ); m_appDomain = null; m_mbro = null; m_mbroProxy = null; Debug.GC( true ); } }
private void Initialize() { string szAssm = typeof( AppDomainTest ).Assembly.FullName; m_appDomain = AppDomain.CreateDomain( this.GetType().FullName ); m_appDomain.Load( szAssm ); m_mbroProxy = (MyMarshalByRefObject)m_appDomain.CreateInstanceAndUnwrap( szAssm, typeof( MyMarshalByRefObject ).FullName ); m_mbro = new MyMarshalByRefObject(); }
public void MarshalMBROByRef( ref MyMarshalByRefObject mbro, MyMarshalByRefObject mbro2) { mbro = mbro2; }
public MyMarshalByRefObject MarshalMBRO( MyMarshalByRefObject mbro ) { return mbro; }
public void MarshalDeadProxy( MyMarshalByRefObject mbro ) { }
public MyMarshalByRefObjectHolder( MyMarshalByRefObject mymbro, MyMarshalByRefObject proxy ) { m_mymbro = mymbro; m_proxy = proxy; }
private bool MarshalMBRO() { MyMarshalByRefObject mbro = m_mbroProxy.MarshalMBRO(m_mbro); return(mbro == m_mbro); }
public bool ProxyEquality(MyMarshalByRefObject mbro1, MyMarshalByRefObject mbro2) { return(mbro1 == mbro2); }
public MyMarshalByRefObjectHolder(MyMarshalByRefObject mymbro, MyMarshalByRefObject proxy) { m_mymbro = mymbro; m_proxy = proxy; }
public bool ProxyEquality( MyMarshalByRefObject mbro1, MyMarshalByRefObject mbro2) { return mbro1 == mbro2; }