Пример #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);
        }
Пример #2
0
 protected override void Load(ContainerBuilder builder)
 {
     builder.RegisterType<WikipediaService>().As<IWikipediaService>().InstancePerLifetimeScope();
     builder.RegisterRibbonViewModels(typeof(AddinModule).Assembly);
     builder.RegisterType<WikipediaResultsViewModel>().AsSelf().InstancePerLifetimeScope();
 }
Пример #3
0
 protected override void Load(ContainerBuilder builder)
 {
     builder.RegisterRibbonViewModels(typeof(AddinModule).Assembly);
     builder.RegisterType<QuotesService>().As<IQuotesService>().SingleInstance();
 }