コード例 #1
0
        public void AssembliesFromPath(string path)
        {
            var assemblies = AssemblyFinder.FindAssemblies(a => true, path,
                                                           txt => { Console.WriteLine("Lamar could not load assembly from file " + txt); }, false);

            foreach (var assembly in assemblies)
            {
                Assembly(assembly);
            }
        }
コード例 #2
0
        /// <summary>
        ///     Choosing option will direct Jasper to *also* scan files ending in '*.exe'
        /// </summary>
        /// <param name="scanner"></param>
        /// <param name="assemblyFilter"></param>
        /// <param name="includeExeFiles"></param>
        public void AssembliesAndExecutablesFromApplicationBaseDirectory(Func <Assembly, bool> assemblyFilter = null)
        {
            var assemblies = AssemblyFinder.FindAssemblies(assemblyFilter,
                                                           txt => { Console.WriteLine("Lamar could not load assembly from file " + txt); }, true);

            foreach (var assembly in assemblies)
            {
                Assembly(assembly);
            }
        }
コード例 #3
0
ファイル: AssemblyScanner.cs プロジェクト: vlisovych/lamar
        public void AssembliesFromApplicationBaseDirectory(Func <Assembly, bool> assemblyFilter)
        {
            var assemblies = AssemblyFinder.FindAssemblies(assemblyFilter,
                                                           txt => { Console.WriteLine("Jasper could not load assembly from file " + txt); });

            foreach (var assembly in assemblies)
            {
                Assembly(assembly);
            }
        }
コード例 #4
0
ファイル: AssemblyScanner.cs プロジェクト: lpodolak/lamar
        public void AssembliesAndExecutablesFromPath(string path)
        {
            var assemblies = AssemblyFinder.FindAssemblies(path,
                                                           txt => { Console.WriteLine("Jasper could not load assembly from file " + txt); }, true);

            foreach (var assembly in assemblies)
            {
                Assembly(assembly);
            }
        }
コード例 #5
0
        public void AssembliesAndExecutablesFromPath(string path,
                                                     Func <Assembly, bool> assemblyFilter)
        {
            var assemblies = AssemblyFinder.FindAssemblies(assemblyFilter, path,
                                                           txt => { Console.WriteLine("Lamar could not load assembly from file " + txt); }, true);


            foreach (var assembly in assemblies)
            {
                Assembly(assembly);
            }
        }
コード例 #6
0
ファイル: AssemblyScanner.cs プロジェクト: lpodolak/lamar
        public void AssembliesFromPath(string path,
                                       Func <Assembly, bool> assemblyFilter)
        {
            var assemblies = AssemblyFinder.FindAssemblies(path,
                                                           txt => { Console.WriteLine("Jasper could not load assembly from file " + txt); }, false)
                             .Where(assemblyFilter);


            foreach (var assembly in assemblies)
            {
                Assembly(assembly);
            }
        }