Example #1
0
 public static void Initializer()
 {
     IoCCore.CastleInstance().Register(Component.For <IReservationService>().ImplementedBy <ReservationService>());
 }
 public static void Initializer()
 {
     IoCCore.CastleInstance().Register(Component.For(typeof(IGenericRepository <>))
                                       .ImplementedBy(typeof(GenericRepository <>))
                                       .LifeStyle.Transient);
 }