public ImportListSyncService(IImportListFactory importListFactory, IImportListExclusionService importListExclusionService, IFetchAndParseImportList listFetcherAndParser, ISearchForNewBook bookSearchService, ISearchForNewAuthor authorSearchService, IAuthorService authorService, IBookService bookService, IAddAuthorService addAuthorService, IAddBookService addBookService, IEventAggregator eventAggregator, IManageCommandQueue commandQueueManager, Logger logger) { _importListFactory = importListFactory; _importListExclusionService = importListExclusionService; _listFetcherAndParser = listFetcherAndParser; _bookSearchService = bookSearchService; _authorSearchService = authorSearchService; _authorService = authorService; _bookService = bookService; _addAuthorService = addAuthorService; _addBookService = addBookService; _eventAggregator = eventAggregator; _commandQueueManager = commandQueueManager; _logger = logger; }
public ImportListSyncService(IImportListFactory importListFactory, IImportListExclusionService importListExclusionService, IFetchAndParseImportList listFetcherAndParser, IGoodreadsProxy goodreadsProxy, IGoodreadsSearchProxy goodreadsSearchProxy, IAuthorService authorService, IBookService bookService, IEditionService editionService, IAddAuthorService addAuthorService, IAddBookService addBookService, IEventAggregator eventAggregator, IManageCommandQueue commandQueueManager, Logger logger) { _importListFactory = importListFactory; _importListExclusionService = importListExclusionService; _listFetcherAndParser = listFetcherAndParser; _goodreadsProxy = goodreadsProxy; _goodreadsSearchProxy = goodreadsSearchProxy; _authorService = authorService; _bookService = bookService; _editionService = editionService; _addAuthorService = addAuthorService; _addBookService = addBookService; _eventAggregator = eventAggregator; _commandQueueManager = commandQueueManager; _logger = logger; }
public BookModule(IAuthorService authorService, IBookService bookService, IAddBookService addBookService, IEditionService editionService, ISeriesBookLinkService seriesBookLinkService, IAuthorStatisticsService authorStatisticsService, IMapCoversToLocal coverMapper, IUpgradableSpecification upgradableSpecification, IBroadcastSignalRMessage signalRBroadcaster, QualityProfileExistsValidator qualityProfileExistsValidator, MetadataProfileExistsValidator metadataProfileExistsValidator) : base(bookService, seriesBookLinkService, authorStatisticsService, coverMapper, upgradableSpecification, signalRBroadcaster) { _authorService = authorService; _editionService = editionService; _addBookService = addBookService; GetResourceAll = GetBooks; CreateResource = AddBook; UpdateResource = UpdateBook; DeleteResource = DeleteBook; Put("/monitor", x => SetBooksMonitored()); PostValidator.RuleFor(s => s.ForeignBookId).NotEmpty(); PostValidator.RuleFor(s => s.Author.QualityProfileId).SetValidator(qualityProfileExistsValidator); PostValidator.RuleFor(s => s.Author.MetadataProfileId).SetValidator(metadataProfileExistsValidator); PostValidator.RuleFor(s => s.Author.RootFolderPath).IsValidPath().When(s => s.Author.Path.IsNullOrWhiteSpace()); PostValidator.RuleFor(s => s.Author.ForeignAuthorId).NotEmpty(); }
public LibraryController( IAddBookService addBookService, INotificationService notificationService, IAllAddedBooksService allAddedBooksServices, IGiveBookService giveBookService, IGivenBooksService givenBooksService, IUserService userService, IGenreService genreService, ITakenBooksService takenBooksService, UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, ILogger <LogoutModel> logger, IHostingEnvironment hostingEnvironment) { this.addBookService = addBookService; this.notificationService = notificationService; this.allAddedBooksServices = allAddedBooksServices; this.genreService = genreService; this.giveBookService = giveBookService; this.givenBooksService = givenBooksService; this.userService = userService; this.userManager = userManager; this.signInManager = signInManager; this.logger = logger; this.hostingEnvironment = hostingEnvironment; }
public BookController(IAuthorService authorService, IBookService bookService, IAddBookService addBookService, IEditionService editionService, ISeriesBookLinkService seriesBookLinkService, IAuthorStatisticsService authorStatisticsService, IMapCoversToLocal coverMapper, IUpgradableSpecification upgradableSpecification, IBroadcastSignalRMessage signalRBroadcaster, QualityProfileExistsValidator qualityProfileExistsValidator, MetadataProfileExistsValidator metadataProfileExistsValidator) : base(bookService, seriesBookLinkService, authorStatisticsService, coverMapper, upgradableSpecification, signalRBroadcaster) { _authorService = authorService; _editionService = editionService; _addBookService = addBookService; PostValidator.RuleFor(s => s.ForeignBookId).NotEmpty(); PostValidator.RuleFor(s => s.Author.QualityProfileId).SetValidator(qualityProfileExistsValidator); PostValidator.RuleFor(s => s.Author.MetadataProfileId).SetValidator(metadataProfileExistsValidator); PostValidator.RuleFor(s => s.Author.RootFolderPath).IsValidPath().When(s => s.Author.Path.IsNullOrWhiteSpace()); PostValidator.RuleFor(s => s.Author.ForeignAuthorId).NotEmpty(); }
public AllAddedBooksController(IAddBookService addBookService, INotificationService notificationService, IAllAddedBooksService allAddedBooksServices, IGiveBookService giveBookService, IGivenBooksService givenBooksService, IUserService userService, IGenreService genreService, ITakenBooksService takenBooksService, UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, ILogger <LogoutModel> logger, IHostingEnvironment hostingEnvironment) : base(addBookService, notificationService, allAddedBooksServices, giveBookService, givenBooksService, userService, genreService, takenBooksService, userManager, signInManager, logger, hostingEnvironment) { }