コード例 #1
0
        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();
        }
コード例 #2
0
        /// <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();
        }