示例#1
0
        private void RegisterShellTypes(ContainerBuilder builder)
        {
            builder.RegisterSingleton<IEventAggregator, EventAggregator>();

            builder.RegisterSingleton<IShellController, ShellController>();
            builder.RegisterSingleton<IShellViewModel, ShellViewModel>();
            builder.RegisterSingleton<IShellView, ShellView>();
        }
        protected override void Load(ContainerBuilder builder)
        {
            base.Load(builder);

            builder.RegisterType<MainPrismModule>();
            builder.RegisterSingleton<IMainController, MainController>();
            builder.RegisterSingleton<IMainViewModel, MainViewModel>();
            builder.RegisterSingleton<IMainView, MainView>();
        }