/// <summary> /// Configure the container with the necessary routes. /// </summary> /// <param name="container">The built-in IoC used with ServiceStack.</param> public override void Configure(Container container) { LogManager.LogFactory = new NLogFactory(); container.Register<ILog>(LogManager.GetLogger("")); container.Register<IArtistMapper>(new ArtistMapper()); container.Register<IAlbumMapper>(new AlbumMapper()); container.Register<IArtistRepository>(new ArtistRepository()); container.Register<IAlbumRepository>(new AlbumRepository()); container.RegisterValidator(typeof(CreateArtistValidator)); container.RegisterValidator(typeof(UpdateArtistValidator)); }