Ejemplo n.º 1
0
        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();
            }
        }
Ejemplo n.º 2
0
 public Bootstrapper(IModuleBootstrapper moduleBootstrapper, IServiceBootstrapper serviceBootstrapper, IAssemblyBootstrapper assemblyBootstrapper)
 {
     this.moduleBootstrapper   = moduleBootstrapper;
     this.serviceBootstrapper  = serviceBootstrapper;
     this.assemblyBootstrapper = assemblyBootstrapper;
 }