public static ICompositionContainer Compose(IList <Type> modules) { if (Container != null) { return(Container); } Container = new CompositionContainer(); Container.Register <ICompositionContainer>(Container); Compose(Container, modules); return(Container); }
private static void RegisterServices(ICompositionContainer container) { container.Register <IUserService, UserService>(); container.Register <IRoomTypeService, RoomTypeService>(); }
private static void RegisterRepositories(ICompositionContainer container) { container.Register <IUserRepository, UserRepository>(); container.Register <IRoomTypeRepository, RoomTypeRepository>(); }
public override void RegisterGlobalServices(ICompositionContainer container) { container.Register <IHotelApi, HotelApi>(); }