/// <summary> /// Choosing option will direct StructureMap to *also* scan files ending in '*.exe' /// </summary> /// <param name="pathFilter"></param> public void AssembliesAndExecutablesFromApplicationBaseDirectory(Func <string, bool> pathFilter = null) { var assemblies = AssemblyFinder.FindAssemblies(null, includeExeFiles: true, pathFilter: pathFilter); foreach (var assembly in assemblies) { Assembly(assembly); } }
/// <summary> /// Choosing option will direct StructureMap to *also* scan files ending in '*.exe' /// </summary> /// <param name="assemblyFilter"></param> public void AssembliesAndExecutablesFromApplicationBaseDirectory(Func <Assembly, bool> assemblyFilter = null) { var assemblies = AssemblyFinder.FindAssemblies(assemblyFilter, includeExeFiles: true); foreach (var assembly in assemblies) { Assembly(assembly); } }
public void AssembliesFromPath(string path) { var assemblies = AssemblyFinder.FindAssemblies(path, txt => { Console.WriteLine("StructureMap could not load assembly from file " + txt); }, includeExeFiles: false); foreach (var assembly in assemblies) { Assembly(assembly); } }
/// <summary> /// Choosing option will direct StructureMap 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("StructureMap could not load assembly from file " + txt); }, includeExeFiles: true); foreach (var assembly in assemblies) { Assembly(assembly); } }
public static void AssembliesFromPath(this IAssemblyScanner scanner, string path) { var assemblies = AssemblyFinder.FindAssemblies(path, txt => { Console.WriteLine("StructureMap could not load assembly from file " + txt); }); foreach (var assembly in assemblies) { scanner.Assembly(assembly); } }
public static void AssembliesFromApplicationBaseDirectory(this IAssemblyScanner scanner, Func <Assembly, bool> assemblyFilter) { var assemblies = AssemblyFinder.FindAssemblies(assemblyFilter, txt => { Console.WriteLine("StructureMap could not load assembly from file " + txt); }); foreach (var assembly in assemblies) { scanner.Assembly(assembly); } }
public void AssembliesAndExecutablesFromPath(string path, Func <Assembly, bool> assemblyFilter) { var assemblies = AssemblyFinder.FindAssemblies(path, txt => { Console.WriteLine("StructureMap could not load assembly from file " + txt); }, includeExeFiles: true).Where(assemblyFilter); foreach (var assembly in assemblies) { Assembly(assembly); } }
public static void AssembliesFromPath(this IAssemblyScanner scanner, string path, Func <Assembly, bool> assemblyFilter) { var assemblies = AssemblyFinder.FindAssemblies(path, txt => { Console.WriteLine("StructureMap could not load assembly from file " + txt); }, includeExeFiles: false).Where(assemblyFilter); foreach (var assembly in assemblies) { scanner.Assembly(assembly); } }