Example #1
0
 public DeleteOrphanAudioJob(IEntryRepository entryRepository, IOptions <StorageSettings> storageSettings,
                             IOptions <AudioFileStorageSettings> audioStorageSettings, ILogger <DeleteOrphanAudioJob> logger) : base(logger)
 {
     _storageSettings      = storageSettings.Value;
     _audioStorageSettings = audioStorageSettings.Value;
     _entryRepository      = entryRepository;
 }
Example #2
0
 public EntryController(IEntryRepository repository,
                        IPodcastRepository podcastRepository,
                        IUnitOfWork unitOfWork, IMapper mapper,
                        IOptions <StorageSettings> storageSettings,
                        IOptions <AppSettings> appSettings,
                        IOptions <AudioFileStorageSettings> audioFileStorageSettings,
                        IYouTubeParser youTubeParser,
                        IConfiguration options,
                        IResponseCacheService cache,
                        IUrlProcessService processor,
                        EntryPreProcessor preProcessor,
                        ILogger <EntryController> logger,
                        UserManager <ApplicationUser> userManager,
                        IHttpContextAccessor contextAccessor) : base(contextAccessor, userManager, logger)
 {
     _podcastRepository        = podcastRepository;
     _repository               = repository;
     _options                  = options;
     _appSettings              = appSettings.Value;
     _storageSettings          = storageSettings.Value;
     _unitOfWork               = unitOfWork;
     _audioFileStorageSettings = audioFileStorageSettings.Value;
     _mapper        = mapper;
     _cache         = cache;
     _youTubeParser = youTubeParser;
     _processor     = processor;
     _preProcessor  = preProcessor;
 }
        public CheckAudioExistsJob(IEntryRepository entryRepository, IOptions <StorageSettings> storageSettings,
                                   IOptions <AudioFileStorageSettings> audioStorageSettings, ILoggerFactory logger, IMailSender mailSender)
        {
            _mailSender           = mailSender;
            _storageSettings      = storageSettings.Value;
            _audioStorageSettings = audioStorageSettings.Value;
            _entryRepository      = entryRepository;

            _logger = logger.CreateLogger <CheckAudioExistsJob>();
        }
Example #4
0
 public CheckItemImagesJob(IEntryRepository entryRepository, IOptions <StorageSettings> storageSettings,
                           IOptions <AudioFileStorageSettings> audioStorageSettings, ILogger <CheckItemImagesJob> logger, IUnitOfWork unitOfWork,
                           RemoteImageCacher imageCacher, IYouTubeParser youTubeParser, IMailSender mailSender) : base(logger)
 {
     _mailSender           = mailSender;
     _storageSettings      = storageSettings.Value;
     _audioStorageSettings = audioStorageSettings.Value;
     _entryRepository      = entryRepository;
     _unitOfWork           = unitOfWork;
     _imageCacher          = imageCacher;
     _youTubeParser        = youTubeParser;
 }
Example #5
0
 public AudioUploadProcessService(IEntryRepository repository, IUnitOfWork unitOfWork,
                                  IFileUploader fileUploader, IOptions <AudioFileStorageSettings> audioStorageSettings,
                                  IOptions <AppSettings> appSettings,
                                  ILogger <AudioUploadProcessService> logger, IRealTimeUpdater realtimeUpdater, IMapper mapper)
     : base(logger, realtimeUpdater, mapper)
 {
     _repository           = repository;
     _unitOfWork           = unitOfWork;
     _appSettings          = appSettings.Value;
     _fileUploader         = fileUploader;
     _audioStorageSettings = audioStorageSettings.Value;
 }
 public DownloadController(IHttpContextAccessor contextAccessor,
                           IOptions <StorageSettings> storageSettings,
                           IOptions <AudioFileStorageSettings> audioStorageSettings,
                           IFileUtilities fileUtilities,
                           UserManager <ApplicationUser> userManager,
                           ILogger <DownloadController> logger,
                           IEntryRepository repository) :
     base(contextAccessor, userManager, logger)
 {
     _storageSettings      = storageSettings.Value;
     _audioStorageSettings = audioStorageSettings.Value;
     _fileUtilities        = fileUtilities;
     _repository           = repository;
 }
 public RadioController(IEntryRepository entryRepository,
                        IOptions <AppSettings> appSettings,
                        IOptions <StorageSettings> storageSettings,
                        IOptions <AudioFileStorageSettings> audioFileStorageSettings,
                        ILogger <RadioController> logger,
                        IMapper mapper)
 {
     _entryRepository          = entryRepository;
     _logger                   = logger;
     _appSettings              = appSettings.Value;
     _storageSettings          = storageSettings.Value;
     _audioFileStorageSettings = audioFileStorageSettings.Value;
     _mapper                   = mapper;
 }
Example #8
0
 public GenerateWaveformsJob(ILogger <GenerateWaveformsJob> logger,
                             IEntryRepository entryRepository,
                             IFileUploader fileUploader,
                             IOptions <StorageSettings> storageSettings,
                             IOptions <AudioFileStorageSettings> audioFileStorageSettings,
                             IOptions <WaveformDataFileStorageSettings> waveformStorageSettings,
                             IWaveformGenerator waveFormGenerator,
                             IUnitOfWork unitOfWork) : base(logger)
 {
     _entryRepository          = entryRepository;
     _fileUploader             = fileUploader;
     _audioFileStorageSettings = audioFileStorageSettings.Value;
     _storageSettings          = storageSettings.Value;
     _waveformStorageSettings  = waveformStorageSettings.Value;
     _waveFormGenerator        = waveFormGenerator;
     _unitOfWork = unitOfWork;
 }
 public AudioController(
     IHttpContextAccessor contextAccessor,
     UserManager <ApplicationUser> userManager,
     ILogger <AudioController> logger,
     IEntryRepository entryRepository,
     IOptions <AppSettings> appSettings,
     IOptions <StorageSettings> storageSettings,
     IActivityLogPodcastEntryRepository activityRepository,
     IOptions <AudioFileStorageSettings> audioStorageSettings
     ) : base(contextAccessor, userManager, logger)
 {
     _entryRepository      = entryRepository;
     _activityRepository   = activityRepository;
     _appSettings          = appSettings.Value;
     _storageSettings      = storageSettings.Value;
     _audioStorageSettings = audioStorageSettings.Value;
 }
Example #10
0
 public RssController(IPodcastRepository podcastRespository,
                      IOptions <AppSettings> appOptions,
                      IOptions <ImageFileStorageSettings> imageStorageOptions,
                      IOptions <AudioFileStorageSettings> audioStorageOptions,
                      IOptions <StorageSettings> storageOptions,
                      UserManager <ApplicationUser> userManager,
                      IRepository <ApplicationUserSlugRedirects> redirectsRepository,
                      IHttpContextAccessor contextAccessor,
                      ILoggerFactory loggerFactory)
 {
     _podcastRepository   = podcastRespository;
     _userManager         = userManager;
     _redirectsRepository = redirectsRepository;
     _contextAccessor     = contextAccessor;
     _appSettings         = appOptions.Value;
     _imageStorageOptions = imageStorageOptions.Value;
     _audioStorageOptions = audioStorageOptions.Value;
     _storageOptions      = storageOptions.Value;
     _logger = loggerFactory.CreateLogger <RssController>();
 }
Example #11
0
 public TagEntryJob(
     ILogger <TagEntryJob> logger,
     IEntryRepository entryRepository,
     IUnitOfWork unitOfWork,
     IFileUploader fileUploader,
     IOptions <AppSettings> appSettings,
     IOptions <ImageFileStorageSettings> imageStorageOptions,
     IOptions <AudioFileStorageSettings> audioStorageOptions,
     IOptions <StorageSettings> storageOptions,
     IMP3Tagger tagger) : base(logger)
 {
     _entryRepository     = entryRepository;
     _unitOfWork          = unitOfWork;
     _fileUploader        = fileUploader;
     _imageStorageOptions = imageStorageOptions.Value;
     _audioStorageOptions = audioStorageOptions.Value;
     _appSettings         = appSettings.Value;
     _storageOptions      = storageOptions.Value;
     _tagger = tagger;
 }
 public AudioUploadController(
     IPodcastRepository podcastRepository,
     IEntryRepository entryRepository,
     IUnitOfWork unitOfWork,
     IOptions <AudioFileStorageSettings> settings,
     IOptions <StorageSettings> storageSettings,
     IOptions <AppSettings> appsettings,
     ILogger <AudioUploadController> logger,
     IMapper mapper,
     IWebHostEnvironment hostingEnvironment,
     UserManager <ApplicationUser> userManager,
     IHttpContextAccessor contextAccessor) : base(contextAccessor, userManager, logger)
 {
     _mapper = mapper;
     _audioFileStorageSettings = settings.Value;
     _appsettings        = appsettings.Value;
     _storageSettings    = storageSettings.Value;
     _podcastRepository  = podcastRepository;
     _entryRepository    = entryRepository;
     _unitOfWork         = unitOfWork;
     _hostingEnvironment = hostingEnvironment;
 }
 public ProcessMissingPodcastsJob(
     IOptions <AudioFileStorageSettings> audioStorageSettings,
     ILogger <ProcessMissingPodcastsJob> logger,
     IUrlProcessService processor,
     IWaveformGenerator waveFormGenerator,
     IEntryRepository entryRepository,
     IPlaylistRepository playlistRepository,
     IFileUtilities fileUtils,
     IFileUploader fileUploader,
     IOptions <WaveformDataFileStorageSettings> waveformStorageSettings,
     IAudioUploadProcessService uploadService) : base(logger)
 {
     _audioStorageSettings = audioStorageSettings.Value;
     _logger                  = logger;
     _uploadService           = uploadService;
     _entryRepository         = entryRepository;
     _playlistRepository      = playlistRepository;
     _fileUtils               = fileUtils;
     _fileUploader            = fileUploader;
     _waveformStorageSettings = waveformStorageSettings.Value;
     _processor               = processor;
     _waveFormGenerator       = waveFormGenerator;
 }
Example #14
0
 public DebugController(IOptions <StorageSettings> settings, IOptions <AppSettings> appSettings,
                        HubLifetimeManager <DebugHub> hub,
                        IConfiguration config,
                        IPageParser pageParser,
                        IOptions <HelpersSettings> helpersSettings,
                        IOptions <AudioFileStorageSettings> audioFileStorageSettings,
                        IOptions <ImageFileStorageSettings> imageFileStorageSettings,
                        IOptions <JwtIssuerOptions> jwtIssuerOptions,
                        IPushSubscriptionStore subscriptionStore,
                        IEntryRepository entryRepository,
                        UserManager <ApplicationUser> userManager,
                        ILogger <DebugController> logger,
                        IMapper mapper,
                        IPushNotificationService notificationService,
                        IPodcastRepository podcastRepository,
                        IUnitOfWork unitOfWork,
                        IHttpContextAccessor contextAccessor,
                        IMailSender mailSender) : base(contextAccessor, userManager, logger)
 {
     _appSettings              = appSettings.Value;
     _storageSettings          = settings.Value;
     _helpersSettings          = helpersSettings.Value;
     _audioFileStorageSettings = audioFileStorageSettings.Value;
     _imageFileStorageSettings = imageFileStorageSettings.Value;
     _jwtIssuerOptions         = jwtIssuerOptions.Value;
     _hub                 = hub;
     _config              = config;
     _pageParser          = pageParser;
     _mapper              = mapper;
     _subscriptionStore   = subscriptionStore;
     _entryRepository     = entryRepository;
     _notificationService = notificationService;
     _podcastRepository   = podcastRepository;
     _unitOfWork          = unitOfWork;
     _mailSender          = mailSender;
 }