public static void SetupContainer(AppSetup appSetup) { appSetup.ContainerBuilder.RegisterType <MainPageViewModel>().AsSelf(); appSetup.ContainerBuilder.RegisterType <LoginViewModel>().AsSelf(); appSetup.ContainerBuilder.RegisterType <HomeTabbedPageViewModel>().AsSelf(); appSetup.ContainerBuilder.RegisterType <HostManagerPageViewModel>().AsSelf(); appSetup.ContainerBuilder.RegisterType <ShellPageViewModel>().AsSelf(); appSetup.ContainerBuilder.RegisterType <SettingsPageViewModel>().AsSelf(); appSetup.ContainerBuilder.RegisterType <WelcomeStartPageViewModel>().AsSelf(); appSetup.ContainerBuilder.RegisterType <Database>().As <IDatabase>().SingleInstance(); appSetup.ContainerBuilder.RegisterType <RepositoryBase>().As <IRepository>(); appSetup.ContainerBuilder.RegisterType <SshService>().As <ISshService>().SingleInstance(); appSetup.ContainerBuilder.RegisterType <SQLiteFactory>().As <ISQLiteFactory>().SingleInstance(); var container = appSetup.Build(); }
public static void SetupContainer(AppSetup appSetup) { appSetup.ContainerBuilder.RegisterType <HomeMasterDetailPageMasterViewModel2>().AsSelf(); appSetup.ContainerBuilder.RegisterType <AboutPageViewModel>().AsSelf(); appSetup.ContainerBuilder.RegisterType <SettingsPageViewModel>().AsSelf(); appSetup.ContainerBuilder.RegisterType <WelcomeStartPageViewModel>().AsSelf(); appSetup.ContainerBuilder.RegisterType <CategoryBuilder>().AsSelf(); appSetup.ContainerBuilder.RegisterType <YggClientCodePcl.YggClient>().AsSelf(); //appSetup.ContainerBuilder.RegisterType<Database>().As<IDatabase>().SingleInstance(); //appSetup.ContainerBuilder.RegisterType<RepositoryBase>().As<IRepository>(); //appSetup.ContainerBuilder.RegisterType<SQLiteFactory>().As<ISQLiteFactory>().SingleInstance(); appSetup.ContainerBuilder.RegisterType <NavigationService>().As <INavigationService>().SingleInstance(); var container = appSetup.Build(); }
public static void SetupContainer(AppSetup appSetup) { appSetup.ContainerBuilder.RegisterType <MainPageViewModel>().AsSelf(); appSetup.ContainerBuilder.RegisterType <LoginViewModel>().AsSelf(); appSetup.ContainerBuilder.RegisterType <HomeTabbedPageViewModel>().AsSelf(); appSetup.ContainerBuilder.RegisterType <HostManagerPageViewModel>().AsSelf(); appSetup.ContainerBuilder.RegisterType <ShellPageViewModel>().AsSelf(); appSetup.ContainerBuilder.RegisterType <SettingsPageViewModel>().AsSelf(); appSetup.ContainerBuilder.RegisterType <WelcomeStartPageViewModel>().AsSelf(); appSetup.ContainerBuilder.RegisterType <AddCommandPageViewModel>().AsSelf(); appSetup.ContainerBuilder.RegisterType <CommandListViewPageViewModel>().AsSelf(); appSetup.ContainerBuilder.RegisterType <UpgradableListViewPageViewModel>().AsSelf(); appSetup.ContainerBuilder.RegisterType <RootMasterDetailPageMasterViewModel>().AsSelf(); appSetup.ContainerBuilder.RegisterType <Database>().As <IDatabase>().SingleInstance(); appSetup.ContainerBuilder.RegisterType <RepositoryBase>().As <IRepository>(); appSetup.ContainerBuilder.RegisterType <SshService>().As <ISshService>().SingleInstance(); appSetup.ContainerBuilder.RegisterType <SQLiteFactory>().As <ISQLiteFactory>().SingleInstance(); appSetup.ContainerBuilder.RegisterType <NavigationService>().As <INavigationService>().SingleInstance(); var container = appSetup.Build(); }