private bool WaitForTypeCache()
{
// need to wait until the cache is refreshed for the first time.
for (int ii = 0; Object.ReferenceEquals(m_typeCache, null) && ii < 200 && Server.IsRunning; ii++)
{
Thread.Sleep(100);
}
return !Object.ReferenceEquals(m_typeCache, null);
}