コード例 #1
0
ファイル: ManualImportService.cs プロジェクト: Zippy79/Sonarr
 public ManualImportService(IDiskProvider diskProvider,
                            IParsingService parsingService,
                            IDiskScanService diskScanService,
                            IMakeImportDecision importDecisionMaker,
                            ISeriesService seriesService,
                            IEpisodeService episodeService,
                            IAggregationService aggregationService,
                            IImportApprovedEpisodes importApprovedEpisodes,
                            ITrackedDownloadService trackedDownloadService,
                            IDownloadedEpisodesImportService downloadedEpisodesImportService,
                            IMediaFileService mediaFileService,
                            IEventAggregator eventAggregator,
                            Logger logger)
 {
     _diskProvider                    = diskProvider;
     _parsingService                  = parsingService;
     _diskScanService                 = diskScanService;
     _importDecisionMaker             = importDecisionMaker;
     _seriesService                   = seriesService;
     _episodeService                  = episodeService;
     _aggregationService              = aggregationService;
     _importApprovedEpisodes          = importApprovedEpisodes;
     _trackedDownloadService          = trackedDownloadService;
     _downloadedEpisodesImportService = downloadedEpisodesImportService;
     _mediaFileService                = mediaFileService;
     _eventAggregator                 = eventAggregator;
     _logger = logger;
 }
コード例 #2
0
 public CommandHandlerTests()
 {
     _aggregationService = A.Fake <IAggregationService>();
     _downloadService    = A.Fake <IDownloadService>();
     _importService      = A.Fake <IImportService>();
     _commandHandler     = new CommandHandler(_aggregationService, _downloadService, _importService);
 }
コード例 #3
0
 public CommandHandler(IAggregationService aggregationService, IDownloadService downloadService,
                       IImportService importService)
 {
     _aggregationService = aggregationService;
     _downloadService    = downloadService;
     _importService      = importService;
 }
コード例 #4
0
 public ExistingOtherExtraImporter(IExtraFileService <OtherExtraFile> otherExtraFileService,
                                   IAggregationService aggregationService,
                                   Logger logger)
     : base(otherExtraFileService)
 {
     _otherExtraFileService = otherExtraFileService;
     _aggregationService    = aggregationService;
     _logger = logger;
 }
コード例 #5
0
 public ExistingSubtitleImporter(IExtraFileService <SubtitleFile> subtitleFileService,
                                 IAggregationService aggregationService,
                                 Logger logger)
     : base(subtitleFileService)
 {
     _subtitleFileService = subtitleFileService;
     _aggregationService  = aggregationService;
     _logger = logger;
 }
コード例 #6
0
 public ExistingMetadataImporter(IExtraFileService <MetadataFile> metadataFileService,
                                 IEnumerable <IMetadata> consumers,
                                 IAggregationService aggregationService,
                                 Logger logger)
     : base(metadataFileService)
 {
     _metadataFileService = metadataFileService;
     _aggregationService  = aggregationService;
     _logger    = logger;
     _consumers = consumers.ToList();
 }
コード例 #7
0
 public ImportDecisionMaker(IEnumerable <IImportDecisionEngineSpecification> specifications,
                            IMediaFileService mediaFileService,
                            IAggregationService aggregationService,
                            IDiskProvider diskProvider,
                            IDetectSample detectSample,
                            Logger logger)
 {
     _specifications     = specifications;
     _mediaFileService   = mediaFileService;
     _aggregationService = aggregationService;
     _diskProvider       = diskProvider;
     _detectSample       = detectSample;
     _logger             = logger;
 }
コード例 #8
0
 public ManualImportService(IDiskProvider diskProvider,
     IParsingService parsingService,
     IDiskScanService diskScanService,
     IMakeImportDecision importDecisionMaker,
     IMovieService movieService,
     IAggregationService aggregationService,
     IImportApprovedMovie importApprovedMovie,
     ITrackedDownloadService trackedDownloadService,
     IDownloadedMovieImportService downloadedMovieImportService,
     IEventAggregator eventAggregator,
     Logger logger)
 {
     _diskProvider = diskProvider;
     _parsingService = parsingService;
     _diskScanService = diskScanService;
     _importDecisionMaker = importDecisionMaker;
     _movieService = movieService;
     _aggregationService = aggregationService;
     _importApprovedMovie = importApprovedMovie;
     _trackedDownloadService = trackedDownloadService;
     _downloadedMovieImportService = downloadedMovieImportService;
     _eventAggregator = eventAggregator;
     _logger = logger;
 }
コード例 #9
0
 public DashboardService(IAggregationService aggregationService)
 {
     this.aggregationService = aggregationService;
 }
コード例 #10
0
 public CalculateController(IAggregationService aggregated)
 {
     this.aggregated = aggregated;
 }
コード例 #11
0
 public MoviesController(ILogger <MoviesController> logger, IAggregationService aggregationService)
 {
     _logger             = logger;
     _aggregationService = aggregationService;
 }
コード例 #12
0
 public AggregationController(IAggregationService aggregationService)
 {
     _aggregationService = aggregationService;
 }
コード例 #13
0
 public SurveyController(ISurveyService surveyService, IDashboardService dashboardService, IAggregationService aggregationService)
 {
     this.surveyService      = surveyService;
     this.dashboardService   = dashboardService;
     this.aggregationService = aggregationService;
 }
コード例 #14
0
 public CatLoaderService(IPersonProvider personProvider, IAggregationService aggregationService)
 {
     _personProvider     = personProvider;
     _aggregationService = aggregationService;
 }
コード例 #15
0
 public FeedbackController(IFeedbackService feedbackService, IAggregationService aggregationService)
 {
     this.feedbackService    = feedbackService;
     this.aggregationService = aggregationService;
 }