Dev2.ServerLifecycleManager.PreloadReferences C# (CSharp) Method

PreloadReferences() private method

Ensures all external dependencies have been loaded, then loads all referenced assemblies by the currently executing assembly, and recursively loads each of the referenced assemblies of the initial dependency set until all dependencies have been loaded.
private PreloadReferences ( ) : bool
return bool
        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;
            }
        }