Ejemplo n.º 1
0
        public override void Init()
        {
            base.Init();

            XUWPCoreAutoRegistration.RegisterAssembly(Builder, typeof(HomeViewModel));
            //XCoreAutoRegistration.RegisterAssembly(Builder, typeof(ProjectGlue));

            // Builder.RegisterType<WorkflowExamples>();
            Container = Builder.Build();
        }
Ejemplo n.º 2
0
        public override void Init()
        {
            base.Init();

            XUWPCoreAutoRegistration.RegisterAssembly(Builder, typeof(MainHomeViewModel));

            Builder.RegisterAssemblyTypes(typeof(MainHomeViewModel).GetTypeInfo().Assembly)
            .Where(t => t.Name.EndsWith("Service") || t.Name.EndsWith("Repo"))
            .AsImplementedInterfaces();

            Builder.RegisterType <TransferConfigService>().As <IHttpTransferConfigService>();

            Container = Builder.Build();
        }