private static ProgrammaticStartupInfo CreateStartupInfo(string[] args) { if (args.Length != 1) return null; var assemblyNames = args[0].Split(';'); var startupInfo = new ProgrammaticStartupInfo(); foreach (var assembly in assemblyNames.Select(MakeAssembly).Where(a=> a != null)) startupInfo.AddAssembly(assembly); return startupInfo; }
public static void LatticeAssemblies(this IAssemblyScanner scanner, ProgrammaticStartupInfo info) { if (info != null) { scanner.AssembliesFromStartupInfo(info); scanner.AssemblyContainingType<StartupRunner>(); scanner.AssemblyContainingType<ILatticeGroup>(); } else { scanner.ScanLatticePluginAssemblies(); } }
public static void AssembliesFromStartupInfo(this IAssemblyScanner scanner, ProgrammaticStartupInfo info) { if (info != null) foreach (var a in info.PluginAssemblies) scanner.Assembly(a); }