コード例 #1
0
        public void LoadAssemblies(string[] directories)
        {
            if (!ChoGuard.IsArgumentNotNullOrEmpty(directories))
            {
                return;
            }

            foreach (Assembly assembly in ChoAssembly.GetAssemblies(directories))
            {
                if (_loadedAssemblies.ContainsKey(assembly.FullName))
                {
                    continue;
                }
                _loadedAssemblies.Add(assembly.FullName, assembly);
            }
        }
コード例 #2
0
ファイル: ChoAssemblyFactory.cs プロジェクト: lanicon/Cinchoo
        public void LoadAssemblies(string[] directories)
        {
            if (!ChoGuard.IsArgumentNotNullOrEmpty(directories))
            {
                return;
            }

            lock (_padLock)
            {
                foreach (Assembly assembly in ChoAssembly.GetAssemblies(directories))
                {
                    if (_loadedAssemblies.ContainsKey(assembly.FullName))
                    {
                        continue;
                    }
                    _loadedAssemblies.Add(assembly.FullName, assembly);
                    AssemblyLoaded.Raise(null, new ChoEventArgs <Assembly>(assembly));
                }
            }
        }