Exemple #1
0
 public void Install(IWindsorContainer container, IConfigurationStore store)
 {
     container
     .AddFacilityIfNotExists <TypedFactoryFacility>()
     .Register(Component.For <IHarvestCrawlerClientFactory>().AsFactory())
     .Register(Component.For <HarvestCrawlerClient>().LifestyleTransient());
 }
Exemple #2
0
 public void Install(IWindsorContainer container, IConfigurationStore store)
 {
   container
       .AddFacilityIfNotExists<TypedFactoryFacility>()
       .Register(Component.For<ISitecoreClientFactory>().AsFactory())
       .Register(Component.For<SitecoreClient>().LifestyleTransient())
       .Register(Component.For<IMapper>().Instance(CreateAutoMapper())
       );
 }
Exemple #3
0
        public void Install(IWindsorContainer container, IConfigurationStore store)
        {
            container
            .AddFacilityIfNotExists <TypedFactoryFacility>()
            .Register(Component.For <IGetOrganizedClientFactory>().AsFactory())
            .Register(Component.For <GetOrganizedClient>().LifestyleTransient());

            if (!container.Kernel.HasComponent(typeof(IRestClient)) && !container.Kernel.HasComponent(typeof(RestClient)))
            {
                container.Register(Component.For <IRestClient, RestClient>());
            }
        }
Exemple #4
0
        public void Install(IWindsorContainer container, IConfigurationStore store)
        {
            container
            .AddFacilityIfNotExists <TypedFactoryFacility>()
            .Register(Component.For <IOneDriveClientFactory>().AsFactory().OnlyNewServices())
            .Register(Component.For <OneDriveClient>().OnlyNewServices().LifestyleTransient());

            if (!container.Kernel.HasComponent(typeof(OneDriveCrawlJobData)))
            {
                container.Register(Component.For <OneDriveCrawlJobData>());
            }
        }
Exemple #5
0
        public void Install(IWindsorContainer container, IConfigurationStore store)
        {
            container
            .AddFacilityIfNotExists <TypedFactoryFacility>()
            .Register(
                Component.For <IHelloWorldClient, HelloWorldClient>()
                .LifestyleTransient()
                .OnlyNewServices());

            if (!container.Kernel.HasComponent(typeof(IRestClient)) && !container.Kernel.HasComponent(typeof(RestClient)))
            {
                container.Register(Component.For <IRestClient, RestClient>());
            }
        }
Exemple #6
0
        public void Install(IWindsorContainer container, IConfigurationStore store)
        {
            container
            .AddFacilityIfNotExists <TypedFactoryFacility>()
            .Register(Component.For <IHubSpotClientFactory>().AsFactory())
            .Register(Component.For <IHubSpotFileFetcher, HubSpotFileFetcher>())
            .Register(Component.For <IHubSpotFileIndexer, HubSpotFileIndexer>())
            .Register(Component.For <IHubSpotClient, HubSpotClient>().LifestyleTransient());

            if (!container.Kernel.HasComponent(typeof(ISystemNotifications)) && !container.Kernel.HasComponent(typeof(SystemNotifications)))
            {
                container.Register(Component.For <ISystemNotifications, SystemNotifications>());
            }

            if (!container.Kernel.HasComponent(typeof(IRestClient)) && !container.Kernel.HasComponent(typeof(RestClient)))
            {
                container.Register(Component.For <IRestClient, RestClient>());
            }
        }
Exemple #7
0
        public void Install(IWindsorContainer container, IConfigurationStore store)
        {
            container
            .AddFacilityIfNotExists <TypedFactoryFacility>()
            .Register(Component.For <IDropBoxClientFactory>().AsFactory())
            .Register(Component.For <IFileIndexer, FileIndexer>())
            .Register(Component.For <BoxFolderUriBuilder>().Instance(new BoxFolderUriBuilder(new Uri(DropBoxConstants.ApiUri))))
            .Register(Component.For <BoxFileUriBuilder>().Instance(new BoxFileUriBuilder(new Uri(DropBoxConstants.ApiUri))))
            .Register(Component.For <IDropBoxClient, DropBoxClient>().LifestyleTransient())
            .Register(Component.For <ISystemNotifications, SystemNotifications>());


            if (!container.Kernel.HasComponent(typeof(IRestClient)) && !container.Kernel.HasComponent(typeof(RestClient)))
            {
                container.Register(Component.For <IRestClient, RestClient>());
            }

            if (!container.Kernel.HasComponent(typeof(ISystemVocabularies)) && !container.Kernel.HasComponent(typeof(SystemVocabularies)))
            {
                container.Register(Component.For <ISystemVocabularies, SystemVocabularies>());
            }
        }