internal ActivatedClientTypeEntry QueryRemoteActivate(String typeName, String assemblyName)
{
String index = EncodeTypeAndAssemblyNames(typeName, assemblyName);
ActivatedClientTypeEntry typeEntry = _remoteTypeInfo[index] as ActivatedClientTypeEntry;
if (typeEntry == null)
return null;
if (typeEntry.GetRemoteAppEntry() == null)
{
RemoteAppEntry appEntry = (RemoteAppEntry)
_remoteAppInfo[typeEntry.ApplicationUrl];
if (appEntry == null)
{
throw new RemotingException(
String.Format(
CultureInfo.CurrentCulture, Environment.GetResourceString(
"Remoting_Activation_MissingRemoteAppEntry"),
typeEntry.ApplicationUrl));
}
typeEntry.CacheRemoteAppEntry(appEntry);
}
return typeEntry;
}