System.Runtime.Remoting.RemotingServices.CreateDataForDomain C# (CSharp) Method

CreateDataForDomain() static private method

static private CreateDataForDomain ( int appDomainId, IntPtr defCtxID ) : ObjRef
appDomainId int
defCtxID System.IntPtr
return ObjRef
        internal static ObjRef CreateDataForDomain(int appDomainId, IntPtr defCtxID)
        {
            // This is a subroutine of CreateProxyForDomain
            // so we can segregate the object references
            // from different app domains into different frames.  This is
            // important for the app domain leak checking code.

            Message.DebugOut("Creating proxy for domain " + appDomainId + "\n");

            RegisterWellKnownChannels();

            InternalCrossContextDelegate xctxDel = new InternalCrossContextDelegate(CreateDataForDomainCallback);

            return (ObjRef) Thread.CurrentThread.InternalCrossContextCallback(null, defCtxID, appDomainId, xctxDel, null);
    
        } // CreateDataForDomain
RemotingServices