internal WellKnownClientTypeEntry[] GetRegisteredWellKnownClientTypes()
{
// count number of well known client types
int count = 0;
foreach (DictionaryEntry dictEntry in _remoteTypeInfo)
{
WellKnownClientTypeEntry entry = dictEntry.Value as WellKnownClientTypeEntry;
if (entry != null)
count++;
}
WellKnownClientTypeEntry[] entries =
new WellKnownClientTypeEntry[count];
int co = 0;
foreach (DictionaryEntry dictEntry in _remoteTypeInfo)
{
WellKnownClientTypeEntry entry = dictEntry.Value as WellKnownClientTypeEntry;
if (entry != null)
{
WellKnownClientTypeEntry wkcte =
new WellKnownClientTypeEntry(entry.TypeName,
entry.AssemblyName, entry.ObjectUrl);
// see if there is an associated app
RemoteAppEntry remApp = entry.GetRemoteAppEntry();
if (remApp != null)
wkcte.ApplicationUrl = remApp.GetAppURI();
entries[co++] = wkcte;
}
}
return entries;
} // GetRegisteredWellKnownClientTypes