protected override void StartApplication(ApplicationStartupInfo startupInfo) { RegisterSystemServices(startupInfo.Kernel, startupInfo.Modules); IModuleBootstrapper moduleBootstrapper = Locator.Get <IModuleBootstrapper>(); moduleBootstrapper.Run(startupInfo.Modules); foreach (IModule module in startupInfo.Modules) { module.RegisterServices(startupInfo.Kernel); } foreach (IModule module in startupInfo.Modules) { module.Load(); } }
public Bootstrapper(IModuleBootstrapper moduleBootstrapper, IServiceBootstrapper serviceBootstrapper, IAssemblyBootstrapper assemblyBootstrapper) { this.moduleBootstrapper = moduleBootstrapper; this.serviceBootstrapper = serviceBootstrapper; this.assemblyBootstrapper = assemblyBootstrapper; }