// We do this because if the domain is a transparant proxy this // will still return the correct domain id. private int getDomainID() { return(Thread.GetDomainID()); }