Пример #1
0
 public static IWindsorContainer AlmacenPersistencia(this IWindsorContainer container)
 {
     return(container
            .CorePersistencia()
            .Register(Component.For <ISessionFactory>().Instance(CrearSessionFactory()))
            .RegisterDependency <IStockPorAlmacen, StockPorAlmacen>()
            .RegisterDependency <IStockPorArticulo, StockPorArticulo>());
 }