bool PreloadReferences()
{
try
{
if(!LoadExternalDependencies())
{
return false;
}
const bool Result = true;
if(_preloadAssemblies)
{
Write("Preloading assemblies... ");
Assembly currentAsm = typeof(ServerLifecycleManager).Assembly;
HashSet<string> inspected = new HashSet<string> { currentAsm.GetName().ToString(), "GroupControls" };
LoadReferences(currentAsm, inspected);
WriteLine("done.");
}
return Result;
}
catch(Exception e)
{
LogException(e);
return false;
}
}