Esempio n. 1
0
        protected override void Load(ContainerBuilder builder)
        {
            builder.RegisterType<GitHubApi>().AsSelf().SingleInstance();
            builder.RegisterType<SettingsViewModel>().As<ISettingsViewModel>();
            builder.RegisterType<CreateIssueViewModel>().As<ICreateIssueViewModel>();

            builder.RegisterRibbonViewModels(typeof(AddinModule).Assembly);
        }
 protected override void Load(ContainerBuilder builder)
 {
     builder.RegisterType<WikipediaService>().As<IWikipediaService>().InstancePerLifetimeScope();
     builder.RegisterRibbonViewModels(typeof(AddinModule).Assembly);
     builder.RegisterType<WikipediaResultsViewModel>().AsSelf().InstancePerLifetimeScope();
 }
Esempio n. 3
0
 protected override void Load(ContainerBuilder builder)
 {
     builder.RegisterRibbonViewModels(typeof(AddinModule).Assembly);
     builder.RegisterType<QuotesService>().As<IQuotesService>().SingleInstance();
 }