void Setup(IPlatformRegistrations platformRegistrations) { Container = Register(); if (Container == null) { throw new NotSetupException(); } RegisterInternal(Container); platformRegistrations?.Register(Container); var viewFactory = new PageFactory(); RegisterViewsForNavigation(viewFactory); Container.RegisterInstance(typeof(IContainer), Container); Container.RegisterInstance(typeof(IPageFactory), viewFactory); ServiceProvider = Container.Create(); NavigationService = (INavigationService)ServiceProvider.GetService(typeof(INavigationService)); Initialized(); }
protected BuildingBlocksApplication(IPlatformRegistrations platformRegistrations) { Setup(platformRegistrations); }