Пример #1
0
        protected override void RegisterTypes(ICodeBrixContainer container)
        {
            container.RegisterForNavigation <MainPage>();
            container.RegisterForNavigation <RecipePage>();

            container.RegisterLazySingleton(() => new RecipeService(), typeof(IRecipeService));
        }
Пример #2
0
        protected override void RegisterTypes(ICodeBrixContainer container)
        {
            container.RegisterForNavigation <MainPage>();
            container.RegisterForNavigation <LoginPage>();
            container.RegisterForNavigation <ViewA>();
            container.RegisterForNavigation <ViewB>();
            container.RegisterForNavigation <ViewC>();

            container.RegisterLazySingleton(typeof(IAuthenticationService), typeof(AuthenticationService));
        }