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); } }
/// <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); } }
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); } }
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); } }
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); } }
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); } }