public static void RegisterActivatedClientType (ActivatedClientTypeEntry entry)
{
lock (channelTemplates)
{
if (wellKnownClientEntries.ContainsKey (entry.ObjectType) || activatedClientEntries.ContainsKey (entry.ObjectType))
throw new RemotingException ("Attempt to redirect activation of type '" + entry.ObjectType.FullName + "' which is already redirected.");
activatedClientEntries[entry.ObjectType] = entry;
ActivationServices.EnableProxyActivation (entry.ObjectType, true);
}
}