public StartupBuilderConfiguration(StartupBuilderObjectFactory objectFactory, IEnumerable <Assembly> assemblies, IStartupEnvironment environment)
 {
     Assemblies            = assemblies;
     AssemblyFilter        = objectFactory.CreateAssemblyFilter();
     AssemblyScanner       = objectFactory.CreateAssemblyScanner();
     DependencyFinder      = objectFactory.CreateDependencyFinder();
     DependencySorter      = objectFactory.CreateDependencySorter();
     Environment           = environment;
     Logger                = objectFactory.CreateStartupLogger();
     ModuleFilter          = objectFactory.CreateModuleFilter();
     TimedTaskManager      = objectFactory.CreateTimedTaskManager();
     RegistrationsModifier = objectFactory.OverrideExpression.RegistrationModifier;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Provides a custom startup environment instance for the startup process
 /// </summary>
 /// <param name="startupEnvironment"></param>
 /// <returns></returns>
 public StartupBuilder UseEnvironment(IStartupEnvironment startupEnvironment)
 {
     _environment = startupEnvironment;
     return(this);
 }