AgentMulder.ReSharper.Plugin.Components.SolutionAnalyzer.LoadContainerInfos C# (CSharp) Метод

LoadContainerInfos() приватный Метод

private LoadContainerInfos ( ) : void
Результат void
        private void LoadContainerInfos()
        {
            string path = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
            Debug.Assert(path != null, "path != null");
            path = Path.Combine(path, "Containers");

            if (!Directory.Exists(path))
            {
                return;
            }

            var catalog = new DirectoryCatalog(path, "*.dll");
            var container = new CompositionContainer(catalog);
            IEnumerable<IContainerInfo> values = container.GetExportedValues<IContainerInfo>();
            knownContainers.AddRange(values);
        }