private void Init() { ContainerLocator.SetContainerExtension(CreateContainerExtension); ContainerExtension = ContainerLocator.CurrentContainerExtension; RegisterRequiredTypes(ContainerExtension); PlatformInitializer?.RegisterTypes(ContainerExtension); RegisterTypes(ContainerExtension); ModuleCatalog = Container.Resolve <IModuleCatalog>(); ConfigureModuleCatalog(ModuleCatalog); ContainerExtension.CreateScope(); InitializeModules(); }
/// <summary> /// Run the bootstrapper process. /// </summary> public virtual void Initialize() { Logger = CreateLogger(); ModuleCatalog = CreateModuleCatalog(); ConfigureModuleCatalog(); Container = CreateContainer(); ConfigureContainer(); RegisterTypes(); PlatformInitializer?.RegisterTypes(Container); NavigationService = CreateNavigationService(); InitializeModules(); }