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