CAESGenome.ComponentRegistrar.AddGenericRepositoriesTo C# (CSharp) Method

AddGenericRepositoriesTo() private static method

private static AddGenericRepositoriesTo ( IWindsorContainer container ) : void
container IWindsorContainer
return void
        private static void AddGenericRepositoriesTo(IWindsorContainer container)
        {
            container.Register(Component.For(typeof(IRepositoryWithTypedId<,>)).ImplementedBy(typeof(RepositoryWithTypedId<,>)).Named("repositoryWithTypedId"));
            container.Register(Component.For(typeof(IRepository<>)).ImplementedBy(typeof(Repository<>)).Named("repositoryType"));
            container.Register(Component.For<IRepository>().ImplementedBy<Repository>().Named("repository"));

            container.Register(Component.For(typeof(IRepositoryFactory)).ImplementedBy<RepositoryFactory>().Named("repositoryFactory"));
            container.Register(Component.For(typeof(IDbService)).ImplementedBy<DbService>().Named("dbService"));

            container.Register(Component.For(typeof(IBarcodeService)).ImplementedBy<BarcodeService>().Named("barcodeService"));
            container.Register(Component.For(typeof(IPhredService)).ImplementedBy<PhredService>().Named("phredService"));
        }