public static Type GetServerTypeForUri(String URI)
{
Type svrType = null;
if(null != URI)
{
ServerIdentity srvID = (ServerIdentity)IdentityHolder.ResolveIdentity(URI);
if(null == srvID)
{
// Check if this a well-known object which needs to be faulted in
svrType = RemotingConfigHandler.GetServerTypeForUri(URI);
}
else
{
svrType = srvID.ServerType;
}
}
return svrType;
}