public void Invoke(IPackagesCollection packages, IAssemblyCollection assemblies, IFileSystem fileSystem) { var scriptType = Assembly.GetExportedTypes().First(t => t.Name == "SetupScript"); MethodInfo runMethod = scriptType.GetMethod("Run", BindingFlags.Public | BindingFlags.Static); runMethod.Invoke(null, new object[] { packages, assemblies, fileSystem }); }
public void Invoke(IPackagesCollection packages, IAssemblyCollection assemblies, IConfigurableFileSystem fileSystem) { var scriptType = Assembly.GetExportedTypes().First(t => t.Name == "SetupScript"); MethodInfo runMethod = scriptType.GetMethod("Run", BindingFlags.Public | BindingFlags.Static); runMethod.Invoke(null, new object[] { packages, assemblies, fileSystem }); }
internal SetupGlobals(Engine engine, IPackagesCollection packages, IAssemblyCollection assemblies) { _engine = engine; _packages = packages; _assemblies = assemblies; }