コード例 #1
0
ファイル: UploadFileService.cs プロジェクト: wezmag/BetterCMS
 public UploadFileService(IRepository repository, IMediaFileService mediaFileService, IAccessControlService accessControlService, ICmsConfiguration configuration)
 {
     this.repository = repository;
     this.mediaFileService = mediaFileService;
     this.accessControlService = accessControlService;
     this.configuration = configuration;
 }
コード例 #2
0
ファイル: FilesService.cs プロジェクト: JMFURY/BetterCMS
 public FilesService(IRepository repository, IMediaFileService fileService,
     IMediaFileUrlResolver fileUrlResolver, IAccessControlService accessControlService)
 {
     this.repository = repository;
     this.fileService = fileService;
     this.fileUrlResolver = fileUrlResolver;
     this.accessControlService = accessControlService;
 }
コード例 #3
0
 public MediaFileTableCleanupService(IMediaFileService mediaFileService,
                                     IEpisodeService episodeService,
                                     Logger logger)
 {
     _mediaFileService = mediaFileService;
     _episodeService = episodeService;
     _logger = logger;
 }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DefaultMediaImageService" /> class.
 /// </summary>
 /// <param name="mediaFileService">The media file service.</param>
 /// <param name="storageService">The storage service.</param>
 /// <param name="repository">The repository.</param>
 /// <param name="unitOfWork">The unit of work.</param>
 /// <param name="sessionFactoryProvider">The session factory provider.</param>
 public DefaultMediaImageService(IMediaFileService mediaFileService, IStorageService storageService, IRepository repository, ISessionFactoryProvider sessionFactoryProvider, IUnitOfWork unitOfWork)
 {
     this.mediaFileService = mediaFileService;
     this.sessionFactoryProvider = sessionFactoryProvider;
     this.storageService = storageService;
     this.repository = repository;
     this.unitOfWork = unitOfWork;
 }
コード例 #5
0
 public UpgradeMediaFileService(IRecycleBinProvider recycleBinProvider,
                                IMediaFileService mediaFileService,
                                IMoveEpisodeFiles episodeFileMover,
                                IDiskProvider diskProvider,
                                Logger logger)
 {
     _recycleBinProvider = recycleBinProvider;
     _mediaFileService = mediaFileService;
     _episodeFileMover = episodeFileMover;
     _diskProvider = diskProvider;
     _logger = logger;
 }
コード例 #6
0
 public ImportApprovedEpisodes(IUpgradeMediaFiles episodeFileUpgrader,
                               IMediaFileService mediaFileService,
                               IDiskProvider diskProvider,
                               IEventAggregator eventAggregator,
                               Logger logger)
 {
     _episodeFileUpgrader = episodeFileUpgrader;
     _mediaFileService = mediaFileService;
     _diskProvider = diskProvider;
     _eventAggregator = eventAggregator;
     _logger = logger;
 }
コード例 #7
0
        public ImportDecisionMaker(IEnumerable<IRejectWithReason> specifications,
                                   IParsingService parsingService,
                                   IMediaFileService mediaFileService,
                                   IDiskProvider diskProvider,

                                   Logger logger)
        {
            _specifications = specifications;
            _parsingService = parsingService;
            _mediaFileService = mediaFileService;
            _diskProvider = diskProvider;
            _logger = logger;
        }
コード例 #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PhotosController"/> class.
 /// </summary>
 /// <param name="mediaRepository">The media repository.</param>
 /// <param name="tagRepository">The tag repository.</param>
 /// <param name="rotateService">The rotate service.</param>
 /// <param name="managePhotoService">The manage photo service.</param>
 /// <param name="mediaFileService">The media file service.</param>
 /// <param name="locationRepository">The location repository.</param>
 /// <param name="albumRepository">The album repository.</param>
 /// <param name="persistentCollectionService">The persistent collection service.</param>
 public PhotosController(IMediaRepository mediaRepository,
     ITagRepository tagRepository,
     IImageService rotateService,
     IManagePhotoFactory managePhotoService,
     IMediaFileService mediaFileService, ILocationRepository locationRepository, IAlbumRepository albumRepository, IPersistentCollectionService persistentCollectionService)
     : base(managePhotoService, persistentCollectionService)
 {
     _mediaRepository = mediaRepository;
     _albumRepository = albumRepository;
     _locationRepository = locationRepository;
     _mediaFileService = mediaFileService;
     _rotateService = rotateService;
     _tagRepository = tagRepository;
 }
コード例 #9
0
ファイル: EbookTagService.cs プロジェクト: whoshoe/Readarr
        public EBookTagService(IAuthorService authorService,
                               IMediaFileService mediaFileService,
                               IRootFolderService rootFolderService,
                               IConfigService configService,
                               ICalibreProxy calibre,
                               Logger logger)
        {
            _authorService     = authorService;
            _mediaFileService  = mediaFileService;
            _rootFolderService = rootFolderService;
            _configService     = configService;
            _calibre           = calibre;

            _logger = logger;
        }
コード例 #10
0
 public AudioTagService(IConfigService configService,
                        IMediaFileService mediaFileService,
                        IDiskProvider diskProvider,
                        IArtistService artistService,
                        IMapCoversToLocal mediaCoverService,
                        IEventAggregator eventAggregator,
                        Logger logger)
 {
     _configService     = configService;
     _mediaFileService  = mediaFileService;
     _diskProvider      = diskProvider;
     _artistService     = artistService;
     _mediaCoverService = mediaCoverService;
     _eventAggregator   = eventAggregator;
     _logger            = logger;
 }
コード例 #11
0
ファイル: ImportDecisionMaker.cs プロジェクト: harsla/Sonarr
 public ImportDecisionMaker(IEnumerable<IImportDecisionEngineSpecification> specifications,
                            IParsingService parsingService,
                            IMediaFileService mediaFileService,
                            IDiskProvider diskProvider,
                            IVideoFileInfoReader videoFileInfoReader,
                            IDetectSample detectSample,
                            Logger logger)
 {
     _specifications = specifications;
     _parsingService = parsingService;
     _mediaFileService = mediaFileService;
     _diskProvider = diskProvider;
     _videoFileInfoReader = videoFileInfoReader;
     _detectSample = detectSample;
     _logger = logger;
 }
コード例 #12
0
 public BookFileController(IBroadcastSignalRMessage signalRBroadcaster,
                           IMediaFileService mediaFileService,
                           IDeleteMediaFiles mediaFileDeletionService,
                           IEBookTagService eBookTagService,
                           IAuthorService authorService,
                           IBookService bookService,
                           IUpgradableSpecification upgradableSpecification)
     : base(signalRBroadcaster)
 {
     _mediaFileService         = mediaFileService;
     _mediaFileDeletionService = mediaFileDeletionService;
     _eBookTagService          = eBookTagService;
     _authorService            = authorService;
     _bookService             = bookService;
     _upgradableSpecification = upgradableSpecification;
 }
コード例 #13
0
 public UserController(
     IUserService userService,
     IIdentityService identityService,
     UserManager <ApplicationUser> userManager,
     ICommonService commonService,
     IMapper mapper,
     IMediaFileService mediaFileService
     )
 {
     this._userService      = userService;
     this._identityService  = identityService;
     this._userManager      = userManager;
     this._commonService    = commonService;
     this._mapper           = mapper;
     this._mediaFileService = mediaFileService;
 }
コード例 #14
0
 public UpgradeMediaFileService(IRecycleBinProvider recycleBinProvider,
                                IMediaFileService mediaFileService,
                                IMoveEpisodeFiles episodeFileMover,
                                IMoveMovieFiles movieFileMover,
                                IDiskProvider diskProvider,
                                IRenameMovieFileService movieFileRenamer,
                                Logger logger)
 {
     _recycleBinProvider = recycleBinProvider;
     _mediaFileService   = mediaFileService;
     _episodeFileMover   = episodeFileMover;
     _movieFileMover     = movieFileMover;
     _diskProvider       = diskProvider;
     _movieFileRenamer   = movieFileRenamer;
     _logger             = logger;
 }
コード例 #15
0
 public RenameBookFileService(IAuthorService authorService,
                              IMediaFileService mediaFileService,
                              IMoveBookFiles bookFileMover,
                              IEventAggregator eventAggregator,
                              IBuildFileNames filenameBuilder,
                              IDiskProvider diskProvider,
                              Logger logger)
 {
     _authorService    = authorService;
     _mediaFileService = mediaFileService;
     _bookFileMover    = bookFileMover;
     _eventAggregator  = eventAggregator;
     _filenameBuilder  = filenameBuilder;
     _diskProvider     = diskProvider;
     _logger           = logger;
 }
コード例 #16
0
 public RenameEpisodeFileService(ISeriesService seriesService,
                                 IMediaFileService mediaFileService,
                                 IMoveEpisodeFiles episodeFileMover,
                                 IEventAggregator eventAggregator,
                                 IEpisodeService episodeService,
                                 IBuildFileNames filenameBuilder,
                                 Logger logger)
 {
     _seriesService    = seriesService;
     _mediaFileService = mediaFileService;
     _episodeFileMover = episodeFileMover;
     _eventAggregator  = eventAggregator;
     _episodeService   = episodeService;
     _filenameBuilder  = filenameBuilder;
     _logger           = logger;
 }
コード例 #17
0
ファイル: ExtraService.cs プロジェクト: zobe123/Lidarr
 public ExtraService(IMediaFileService mediaFileService,
                     IAlbumService albumService,
                     ITrackService trackService,
                     IDiskProvider diskProvider,
                     IConfigService configService,
                     List <IManageExtraFiles> extraFileManagers,
                     Logger logger)
 {
     _mediaFileService  = mediaFileService;
     _albumService      = albumService;
     _trackService      = trackService;
     _diskProvider      = diskProvider;
     _configService     = configService;
     _extraFileManagers = extraFileManagers.OrderBy(e => e.Order).ToList();
     _logger            = logger;
 }
コード例 #18
0
 public MediaFileDeletionService(IDiskProvider diskProvider,
                                 IRecycleBinProvider recycleBinProvider,
                                 IMediaFileService mediaFileService,
                                 ISeriesService seriesService,
                                 IConfigService configService,
                                 IEventAggregator eventAggregator,
                                 Logger logger)
 {
     _diskProvider       = diskProvider;
     _recycleBinProvider = recycleBinProvider;
     _mediaFileService   = mediaFileService;
     _seriesService      = seriesService;
     _configService      = configService;
     _eventAggregator    = eventAggregator;
     _logger             = logger;
 }
コード例 #19
0
 public MetadataProfileService(IMetadataProfileRepository profileRepository,
                               IAuthorService authorService,
                               IBookService bookService,
                               IMediaFileService mediaFileService,
                               IImportListFactory importListFactory,
                               IRootFolderService rootFolderService,
                               Logger logger)
 {
     _profileRepository = profileRepository;
     _authorService     = authorService;
     _bookService       = bookService;
     _mediaFileService  = mediaFileService;
     _importListFactory = importListFactory;
     _rootFolderService = rootFolderService;
     _logger            = logger;
 }
コード例 #20
0
ファイル: ImportDecisionMaker.cs プロジェクト: ismell/Sonarr
 public ImportDecisionMaker(IEnumerable <IImportDecisionEngineSpecification> specifications,
                            IParsingService parsingService,
                            IMediaFileService mediaFileService,
                            IDiskProvider diskProvider,
                            IVideoFileInfoReader videoFileInfoReader,
                            IDetectSample detectSample,
                            Logger logger)
 {
     _specifications      = specifications;
     _parsingService      = parsingService;
     _mediaFileService    = mediaFileService;
     _diskProvider        = diskProvider;
     _videoFileInfoReader = videoFileInfoReader;
     _detectSample        = detectSample;
     _logger = logger;
 }
コード例 #21
0
 public ImportApprovedMovie(IUpgradeMediaFiles movieFileUpgrader,
                            IMediaFileService mediaFileService,
                            IExtraService extraService,
                            IDiskProvider diskProvider,
                            IHistoryService historyService,
                            IEventAggregator eventAggregator,
                            Logger logger)
 {
     _movieFileUpgrader = movieFileUpgrader;
     _mediaFileService  = mediaFileService;
     _extraService      = extraService;
     _diskProvider      = diskProvider;
     _historyService    = historyService;
     _eventAggregator   = eventAggregator;
     _logger            = logger;
 }
コード例 #22
0
 public RenameMovieFileService(IMovieService movieService,
                               IMediaFileService mediaFileService,
                               IMoveMovieFiles movieFileMover,
                               IEventAggregator eventAggregator,
                               IBuildFileNames filenameBuilder,
                               IDiskProvider diskProvider,
                               Logger logger)
 {
     _movieService     = movieService;
     _mediaFileService = mediaFileService;
     _movieFileMover   = movieFileMover;
     _eventAggregator  = eventAggregator;
     _filenameBuilder  = filenameBuilder;
     _diskProvider     = diskProvider;
     _logger           = logger;
 }
コード例 #23
0
ファイル: EpisodeFileModule.cs プロジェクト: Macharr/Macharr
 public EpisodeFileModule(IBroadcastSignalRMessage signalRBroadcaster,
                          IMediaFileService mediaFileService,
                          IDeleteMediaFiles mediaFileDeletionService,
                          ISeriesService seriesService,
                          IUpgradableSpecification upgradableSpecification)
     : base(signalRBroadcaster)
 {
     _mediaFileService         = mediaFileService;
     _mediaFileDeletionService = mediaFileDeletionService;
     _seriesService            = seriesService;
     _upgradableSpecification  = upgradableSpecification;
     GetResourceById           = GetEpisodeFile;
     GetResourceAll            = GetEpisodeFiles;
     UpdateResource            = SetQuality;
     DeleteResource            = DeleteEpisodeFile;
 }
コード例 #24
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FileService" /> class.
 /// </summary>
 /// <param name="repository">The repository.</param>
 /// <param name="fileService">The file service.</param>
 /// <param name="fileUrlResolver">The file URL resolver.</param>
 /// <param name="unitOfWork">The unit of work.</param>
 /// <param name="tagService">The tag service.</param>
 /// <param name="mediaService">The media service.</param>
 /// <param name="accessControlService">The access control service.</param>
 public FileService(
     IRepository repository,
     IMediaFileService fileService,
     IMediaFileUrlResolver fileUrlResolver,
     IUnitOfWork unitOfWork,
     ITagService tagService,
     IMediaService mediaService,
     IAccessControlService accessControlService)
 {
     this.repository           = repository;
     this.fileService          = fileService;
     this.fileUrlResolver      = fileUrlResolver;
     this.unitOfWork           = unitOfWork;
     this.tagService           = tagService;
     this.mediaService         = mediaService;
     this.accessControlService = accessControlService;
 }
コード例 #25
0
ファイル: FileService.cs プロジェクト: k4gdw/BetterCMS
 /// <summary>
 /// Initializes a new instance of the <see cref="FileService" /> class.
 /// </summary>
 /// <param name="repository">The repository.</param>
 /// <param name="fileService">The file service.</param>
 /// <param name="fileUrlResolver">The file URL resolver.</param>
 /// <param name="unitOfWork">The unit of work.</param>
 /// <param name="tagService">The tag service.</param>
 /// <param name="mediaService">The media service.</param>
 /// <param name="accessControlService">The access control service.</param>
 public FileService(
     IRepository repository,
     IMediaFileService fileService,
     IMediaFileUrlResolver fileUrlResolver,
     IUnitOfWork unitOfWork,
     ITagService tagService,
     IMediaService mediaService,
     IAccessControlService accessControlService)
 {
     this.repository = repository;
     this.fileService = fileService;
     this.fileUrlResolver = fileUrlResolver;
     this.unitOfWork = unitOfWork;
     this.tagService = tagService;
     this.mediaService = mediaService;
     this.accessControlService = accessControlService;
 }
コード例 #26
0
 public MovieFileModule(IBroadcastSignalRMessage signalRBroadcaster,
                        IMediaFileService mediaFileService,
                        IRecycleBinProvider recycleBinProvider,
                        IMovieService movieService,
                        IQualityUpgradableSpecification qualityUpgradableSpecification,
                        Logger logger)
     : base(signalRBroadcaster)
 {
     _mediaFileService               = mediaFileService;
     _recycleBinProvider             = recycleBinProvider;
     _movieService                   = movieService;
     _qualityUpgradableSpecification = qualityUpgradableSpecification;
     _logger         = logger;
     GetResourceById = GetMovieFile;
     UpdateResource  = SetQuality;
     DeleteResource  = DeleteMovieFile;
 }
コード例 #27
0
 public MealCreateViewModel(
     INavigationService navigationService,
     IMealDataService mealDataService,
     AbstractValidator <Meal> mealValidator,
     IDialogService dialogService,
     IMediaFileService mediaFileService)
 {
     _meal              = new Meal();
     EnableAddButton    = true;
     _navigationService = navigationService;
     _mealValidator     = mealValidator;
     _mealDataService   = mealDataService;
     _dialogService     = dialogService;
     _mediaFileService  = mediaFileService;
     SetViewTitle();
     SetDefaultImage();
 }
コード例 #28
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FilesService"/> class.
 /// </summary>
 /// <param name="repository">The repository.</param>
 /// <param name="mediaFileService">The media file service.</param>
 /// <param name="fileUrlResolver">The file URL resolver.</param>
 /// <param name="accessControlService">The access control service.</param>
 /// <param name="fileService">The file service.</param>
 /// <param name="uploadFileService">The upload file service.</param>
 public FilesService(
     IRepository repository,
     IMediaFileService mediaFileService,
     IMediaFileUrlResolver fileUrlResolver,
     IAccessControlService accessControlService,
     IFileService fileService,
     IUploadFileService uploadFileService,
     ICategoryService categoryService)
 {
     this.repository = repository;
     this.mediaFileService = mediaFileService;
     this.fileUrlResolver = fileUrlResolver;
     this.accessControlService = accessControlService;
     this.fileService = fileService;
     this.categoryService = categoryService;
     Upload = uploadFileService;
 }
コード例 #29
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FilesService"/> class.
 /// </summary>
 /// <param name="repository">The repository.</param>
 /// <param name="mediaFileService">The media file service.</param>
 /// <param name="fileUrlResolver">The file URL resolver.</param>
 /// <param name="accessControlService">The access control service.</param>
 /// <param name="fileService">The file service.</param>
 /// <param name="uploadFileService">The upload file service.</param>
 public FilesService(
     IRepository repository,
     IMediaFileService mediaFileService,
     IMediaFileUrlResolver fileUrlResolver,
     IAccessControlService accessControlService,
     IFileService fileService,
     IUploadFileService uploadFileService,
     ICategoryService categoryService)
 {
     this.repository           = repository;
     this.mediaFileService     = mediaFileService;
     this.fileUrlResolver      = fileUrlResolver;
     this.accessControlService = accessControlService;
     this.fileService          = fileService;
     this.categoryService      = categoryService;
     Upload = uploadFileService;
 }
コード例 #30
0
 public EpisodeModule(IBroadcastSignalRMessage signalRBroadcaster,
                      IMediaFileService mediaFileService,
                      IRecycleBinProvider recycleBinProvider,
                      ISeriesService seriesService,
                      IQualityUpgradableSpecification qualityUpgradableSpecification,
                      Logger logger)
     : base(signalRBroadcaster)
 {
     _mediaFileService               = mediaFileService;
     _recycleBinProvider             = recycleBinProvider;
     _seriesService                  = seriesService;
     _qualityUpgradableSpecification = qualityUpgradableSpecification;
     _logger         = logger;
     GetResourceById = GetEpisodeFile;
     GetResourceAll  = GetEpisodeFiles;
     UpdateResource  = SetQuality;
     DeleteResource  = DeleteEpisodeFile;
 }
コード例 #31
0
 public MediaFileDeletionService(IDiskProvider diskProvider,
                                 IRecycleBinProvider recycleBinProvider,
                                 IMediaFileService mediaFileService,
                                 IAuthorService authorService,
                                 IConfigService configService,
                                 IRootFolderService rootFolderService,
                                 ICalibreProxy calibre,
                                 Logger logger)
 {
     _diskProvider       = diskProvider;
     _recycleBinProvider = recycleBinProvider;
     _mediaFileService   = mediaFileService;
     _authorService      = authorService;
     _configService      = configService;
     _rootFolderService  = rootFolderService;
     _calibre            = calibre;
     _logger             = logger;
 }
コード例 #32
0
 public CalibreProxy(IHttpClient httpClient,
                     IMapCoversToLocal mediaCoverService,
                     IRemotePathMappingService pathMapper,
                     IRootFolderWatchingService rootFolderWatchingService,
                     IMediaFileService mediaFileService,
                     IConfigService configService,
                     ICacheManager cacheManager,
                     Logger logger)
 {
     _httpClient                = httpClient;
     _mediaCoverService         = mediaCoverService;
     _pathMapper                = pathMapper;
     _rootFolderWatchingService = rootFolderWatchingService;
     _mediaFileService          = mediaFileService;
     _configService             = configService;
     _bookCache = cacheManager.GetCache <CalibreBook>(GetType());
     _logger    = logger;
 }
コード例 #33
0
ファイル: AudioTagService.cs プロジェクト: whoshoe/Readarr
 public AudioTagService(IConfigService configService,
                        IMediaFileService mediaFileService,
                        IDiskProvider diskProvider,
                        IRootFolderWatchingService rootFolderWatchingService,
                        IAuthorService authorService,
                        IMapCoversToLocal mediaCoverService,
                        IEventAggregator eventAggregator,
                        Logger logger)
 {
     _configService             = configService;
     _mediaFileService          = mediaFileService;
     _diskProvider              = diskProvider;
     _rootFolderWatchingService = rootFolderWatchingService;
     _authorService             = authorService;
     _mediaCoverService         = mediaCoverService;
     _eventAggregator           = eventAggregator;
     _logger = logger;
 }
コード例 #34
0
 public UpgradeMediaFileService(IRecycleBinProvider recycleBinProvider,
                                IMediaFileService mediaFileService,
                                IMetadataTagService metadataTagService,
                                IMoveBookFiles bookFileMover,
                                IDiskProvider diskProvider,
                                IRootFolderService rootFolderService,
                                ICalibreProxy calibre,
                                Logger logger)
 {
     _recycleBinProvider = recycleBinProvider;
     _mediaFileService   = mediaFileService;
     _metadataTagService = metadataTagService;
     _bookFileMover      = bookFileMover;
     _diskProvider       = diskProvider;
     _rootFolderService  = rootFolderService;
     _calibre            = calibre;
     _logger             = logger;
 }
コード例 #35
0
 public MealEditViewModel(
     INavigationService navigationService,
     IMealDataService mealDataService,
     AbstractValidator <Meal> mealValidator,
     IDialogService dialogService,
     IMediaFileService mediaFileService)
 {
     _navigationService = navigationService;
     _mealValidator     = mealValidator;
     _mealDataService   = mealDataService;
     _dialogService     = dialogService;
     _mediaFileService  = mediaFileService;
     MessagingCenter.Instance.Subscribe <MealDetailViewModel, Meal>(this, "sendMeal",
                                                                    (sender, meal) =>
     {
         Meal = meal;
         CheckMealImage(Meal);
     });
 }
コード例 #36
0
ファイル: XbmcMetadata.cs プロジェクト: gschizas/NzbDrone
 public XbmcMetadata(IEventAggregator eventAggregator,
                     IMapCoversToLocal mediaCoverService,
                     IMediaFileService mediaFileService,
                     IMetadataFileService metadataFileService,
                     IDiskProvider diskProvider,
                     IHttpProvider httpProvider,
                     IEpisodeService episodeService,
                     Logger logger)
     : base(diskProvider, httpProvider, logger)
 {
     _eventAggregator     = eventAggregator;
     _mediaCoverService   = mediaCoverService;
     _mediaFileService    = mediaFileService;
     _metadataFileService = metadataFileService;
     _diskProvider        = diskProvider;
     _httpProvider        = httpProvider;
     _episodeService      = episodeService;
     _logger = logger;
 }
コード例 #37
0
 public MetadataService(IMetadataFactory metadataFactory,
                        IMetadataFileService metadataFileService,
                        ICleanMetadataService cleanMetadataService,
                        IMediaFileService mediaFileService,
                        IEpisodeService episodeService,
                        IDiskProvider diskProvider,
                        IHttpProvider httpProvider,
                        IEventAggregator eventAggregator,
                        Logger logger)
 {
     _metadataFactory      = metadataFactory;
     _metadataFileService  = metadataFileService;
     _cleanMetadataService = cleanMetadataService;
     _mediaFileService     = mediaFileService;
     _episodeService       = episodeService;
     _diskProvider         = diskProvider;
     _httpProvider         = httpProvider;
     _eventAggregator      = eventAggregator;
     _logger = logger;
 }
コード例 #38
0
 public ImportDecisionMaker(IEnumerable <IImportDecisionEngineSpecification <LocalBook> > trackSpecifications,
                            IEnumerable <IImportDecisionEngineSpecification <LocalEdition> > bookSpecifications,
                            IMediaFileService mediaFileService,
                            IMetadataTagService metadataTagService,
                            IAugmentingService augmentingService,
                            IIdentificationService identificationService,
                            IRootFolderService rootFolderService,
                            IProfileService qualityProfileService,
                            Logger logger)
 {
     _trackSpecifications   = trackSpecifications;
     _bookSpecifications    = bookSpecifications;
     _mediaFileService      = mediaFileService;
     _metadataTagService    = metadataTagService;
     _augmentingService     = augmentingService;
     _identificationService = identificationService;
     _rootFolderService     = rootFolderService;
     _qualityProfileService = qualityProfileService;
     _logger = logger;
 }
コード例 #39
0
 public RenameTrackFileService(IArtistService artistService,
                               IAlbumService albumService,
                               IMediaFileService mediaFileService,
                               IMoveTrackFiles trackFileMover,
                               IEventAggregator eventAggregator,
                               ITrackService trackService,
                               IBuildFileNames filenameBuilder,
                               IDiskProvider diskProvider,
                               Logger logger)
 {
     _artistService    = artistService;
     _albumService     = albumService;
     _mediaFileService = mediaFileService;
     _trackFileMover   = trackFileMover;
     _eventAggregator  = eventAggregator;
     _trackService     = trackService;
     _filenameBuilder  = filenameBuilder;
     _diskProvider     = diskProvider;
     _logger           = logger;
 }
コード例 #40
0
 public ImportDecisionMaker(IEnumerable <IImportDecisionEngineSpecification <LocalTrack> > trackSpecifications,
                            IEnumerable <IImportDecisionEngineSpecification <LocalAlbumRelease> > albumSpecifications,
                            IMediaFileService mediaFileService,
                            IAudioTagService audioTagService,
                            IAugmentingService augmentingService,
                            IIdentificationService identificationService,
                            IRootFolderService rootFolderService,
                            IProfileService qualityProfileService,
                            Logger logger)
 {
     _trackSpecifications   = trackSpecifications;
     _albumSpecifications   = albumSpecifications;
     _mediaFileService      = mediaFileService;
     _audioTagService       = audioTagService;
     _augmentingService     = augmentingService;
     _identificationService = identificationService;
     _rootFolderService     = rootFolderService;
     _qualityProfileService = qualityProfileService;
     _logger = logger;
 }
コード例 #41
0
        public DbMediaItemListViewModel(IEventAggregator eventAggregator, /*IMediaFilePathResolver filePathResolver,*/
                                        IMediaFileImageResolver imageResolver, IMediaFileService mediaFileService, MediaFileItemManager mediaFileItemManager)
        {
            this.EventAggregator = eventAggregator;
            //this.FilePathResolver = filePathResolver;
            this.ImageResolver    = imageResolver;
            this.MediaFileService = mediaFileService;
            _mediaItemCollection  = new ObservableCollection <BindableMediaFileItem>();
            _mediaFileItemManager = mediaFileItemManager;

            _deleteMediaItemCommand = new DelegateCommand(DeleteMediaItem, CanDeleteMediaItem);
            _editMediaItemCommand   = new DelegateCommand <object>(EditMediaItem, CanEditMediaItem);

            //_saveMediaItemsCommand = new DelegateCommand(SaveMediaItems, CanSaveMediaItems);

            _searchCommand = new DelegateCommand <RequestPagingItemsEventArgs>(SearchMediaItems);

            _previewCommand    = new DelegateCommand <IPlayableItem>(Preview);
            this.SearchOptions = new MediaItemSearchOptions();
        }
コード例 #42
0
 public DefaultMediaImageVersionPathService(IMediaFileService mediaFileService)
 {
     this.mediaFileService = mediaFileService;
 }
コード例 #43
0
ファイル: FileService.cs プロジェクト: rajeshpillai/BetterCMS
 public FileService(IRepository repository, IMediaFileService fileService, IMediaFileUrlResolver fileUrlResolver)
 {
     this.repository = repository;
     this.fileService = fileService;
     this.fileUrlResolver = fileUrlResolver;
 }
コード例 #44
0
 public UploadFileService(IRepository repository, IMediaFileService mediaFileService, IAccessControlService accessControlService)
 {
     this.repository = repository;
     this.mediaFileService = mediaFileService;
     this.accessControlService = accessControlService;
 }
コード例 #45
0
ファイル: FilesService.cs プロジェクト: navid60/BetterCMS
 public FilesService(IRepository repository, IMediaFileService fileService)
 {
     this.repository = repository;
     this.fileService = fileService;
 }