Dev2.ServerLifecycleManager.PreloadReferences C# (CSharp) 메소드

PreloadReferences() 개인적인 메소드

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
리턴 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;
            }
        }