Exemple #1
0
 public Audio(IRoadieSettings configuration, IHttpEncoder httpEncoder, ICacheManager cacheManager,
              ILogger logger, IArtistLookupEngine artistLookupEngine, IReleaseLookupEngine releaseLookupEngine,
              IAudioMetaDataHelper audioMetaDataHelper)
     : base(configuration, httpEncoder, cacheManager, logger, artistLookupEngine, releaseLookupEngine)
 {
     AudioMetaDataHelper = audioMetaDataHelper;
 }
Exemple #2
0
 public ArtistFactory(IRoadieSettings configuration, IHttpEncoder httpEncoder, IRoadieDbContext context,
                      ICacheManager cacheManager, ILogger logger, IArtistLookupEngine artistLookupEngine, IReleaseFactory releaseFactory, IImageFactory imageFactory, IReleaseLookupEngine releaseLookupEngine, IAudioMetaDataHelper audioMetaDataHelper)
     : base(configuration, context, cacheManager, logger, httpEncoder, artistLookupEngine, releaseLookupEngine)
 {
     this.ReleaseFactory      = releaseFactory;
     this.ImageFactory        = imageFactory;
     this.AudioMetaDataHelper = audioMetaDataHelper;
 }
Exemple #3
0
 public PluginBase(IRoadieSettings configuration, IHttpEncoder httpEncoder, ICacheManager cacheManager, ILogger logger,
                   IArtistLookupEngine artistLookupEngine, IReleaseLookupEngine releaseLookupEngine)
 {
     Configuration       = configuration;
     HttpEncoder         = httpEncoder;
     CacheManager        = cacheManager;
     Logger              = logger;
     ArtistLookupEngine  = artistLookupEngine;
     ReleaseLookupEngine = releaseLookupEngine;
 }
Exemple #4
0
        public FileProcessor(IRoadieSettings configuration, IHttpEncoder httpEncoder, ICacheManager cacheManager,
                             ILogger <FileProcessor> logger, IArtistLookupEngine artistLookupEngine, IReleaseLookupEngine releaseLookupEngine,
                             IAudioMetaDataHelper audioMetaDataHelper)
        {
            Configuration = configuration;
            HttpEncoder   = httpEncoder;
            CacheManager  = cacheManager;
            Logger        = logger;

            ArtistLookupEngine  = artistLookupEngine;
            ReleaseLookupEngine = releaseLookupEngine;
            AudioMetaDataHelper = audioMetaDataHelper;
        }
        public ReleaseLookupEngine(IRoadieSettings configuration, IHttpEncoder httpEncoder, IRoadieDbContext context,
                                   ICacheManager cacheManager, ILogger logger, IArtistLookupEngine artistLookupEngine,
                                   ILabelLookupEngine labelLookupEngine)
            : base(configuration, httpEncoder, context, cacheManager, logger)
        {
            this.ArtistLookupEngine = ArtistLookupEngine;
            this.LabelLookupEngine  = labelLookupEngine;

            this.ITunesReleaseSearchEngine      = new ITunesSearchEngine(this.Configuration, this.CacheManager, this.Logger);
            this.MusicBrainzReleaseSearchEngine = new musicbrainz.MusicBrainzProvider(this.Configuration, this.CacheManager, this.Logger);
            this.LastFmReleaseSearchEngine      = new lastfm.LastFmHelper(this.Configuration, this.CacheManager, this.Logger, context, httpEncoder);
            this.DiscogsReleaseSearchEngine     = new discogs.DiscogsHelper(this.Configuration, this.CacheManager, this.Logger);
            this.SpotifyReleaseSearchEngine     = new spotify.SpotifyHelper(this.Configuration, this.CacheManager, this.Logger);
            this.WikipediaReleaseSearchEngine   = new wikipedia.WikipediaHelper(this.Configuration, this.CacheManager, this.Logger, this.HttpEncoder);
        }
Exemple #6
0
        public ProcessorBase(IRoadieSettings configuration, IHttpEncoder httpEncoder, string destinationRoot, IRoadieDbContext context, ICacheManager cacheManager,
                             ILogger logger, IArtistLookupEngine artistLookupEngine, IArtistFactory artistFactory, IReleaseFactory releaseFactory, IImageFactory imageFactory, IReleaseLookupEngine releaseLookupEngine, IAudioMetaDataHelper audioMetaDataHelper)
        {
            this.Configuration = configuration;
            this.HttpEncoder   = httpEncoder;
            this.DbContext     = context;
            this.CacheManager  = cacheManager;
            this.Logger        = logger;

            this.DestinationRoot     = destinationRoot;
            this.ArtistLookupEngine  = artistLookupEngine;
            this.ReleaseLookupEngine = releaseLookupEngine;
            this.ArtistFactory       = artistFactory;
            this.ReleaseFactory      = releaseFactory;
            this.ImageFactory        = imageFactory;
            this.AudioMetaDataHelper = audioMetaDataHelper;
        }
Exemple #7
0
 public FileDirectoryProcessorService(IRoadieSettings configuration,
                                      IHttpEncoder httpEncoder,
                                      IHttpContext httpContext,
                                      IRoadieDbContext context,
                                      ICacheManager cacheManager,
                                      ILogger <FileDirectoryProcessorService> logger,
                                      IArtistLookupEngine artistLookupEngine,
                                      IFileProcessor fileProcessor,
                                      IReleaseLookupEngine releaseLookupEngine,
                                      IAudioMetaDataHelper audioMetaDataHelper,
                                      IReleaseService releaseService)
     : base(configuration, httpEncoder, context, cacheManager, logger, httpContext)
 {
     ArtistLookupEngine  = artistLookupEngine;
     AudioMetaDataHelper = audioMetaDataHelper;
     ReleaseLookupEngine = releaseLookupEngine;
     ReleaseService      = releaseService;
     FileProcessor       = fileProcessor;
 }
Exemple #8
0
        public AudioMetaDataHelper(IRoadieSettings configuration, IHttpEncoder httpEncoder, IRoadieDbContext context,
                                   IMusicBrainzProvider musicBrainzHelper, ILastFmHelper lastFmHelper, ICacheManager cacheManager,
                                   ILogger <AudioMetaDataHelper> logger, IArtistLookupEngine artistLookupEngine, IFileNameHelper filenameHelper,
                                   IID3TagsHelper id3TagsHelper)
        {
            Configuration  = configuration;
            HttpEncoder    = httpEncoder;
            CacheManager   = cacheManager;
            Logger         = logger;
            FileNameHelper = filenameHelper;
            ID3TagsHelper  = id3TagsHelper;

            MusicBrainzProvider = musicBrainzHelper;
            LastFmHelper        = lastFmHelper;

            ArtistLookupEngine = artistLookupEngine;

            DoParseFromFileName    = configuration.Processing.DoParseFromFileName;
            DoParseFromDiscogsDB   = configuration.Processing.DoParseFromDiscogsDB;
            DoParseFromMusicBrainz = configuration.Processing.DoParseFromMusicBrainz;
            DoParseFromLastFM      = configuration.Processing.DoParseFromLastFM;
        }
Exemple #9
0
 public LabelFactory(IRoadieSettings configuration, IHttpEncoder httpEncoder, IRoadieDbContext context, ICacheManager cacheManager, ILogger logger, IArtistLookupEngine artistLookupEngine, IReleaseLookupEngine releaseLookupEngine)
     : base(configuration, context, cacheManager, logger, httpEncoder, artistLookupEngine, releaseLookupEngine)
 {
 }
Exemple #10
0
 public FolderProcessor(IRoadieSettings configuration, IHttpEncoder httpEncoder, string destinationRoot, IRoadieDbContext context, ICacheManager cacheManager, ILogger logger, IArtistLookupEngine artistLookupEngine, IArtistFactory artistFactory, IReleaseFactory releaseFactory, IImageFactory imageFactory, IReleaseLookupEngine releaseLookupEngine, IAudioMetaDataHelper audioMetaDataHelper)
     : base(configuration, httpEncoder, destinationRoot, context, cacheManager, logger, artistLookupEngine, artistFactory, releaseFactory, imageFactory, releaseLookupEngine, audioMetaDataHelper)
 {
     SimpleContract.Requires <ArgumentNullException>(!string.IsNullOrEmpty(destinationRoot), "Invalid Destination Folder");
     this._fileProcessor = new FileProcessor(configuration, httpEncoder, destinationRoot, context, cacheManager, logger, artistLookupEngine, artistFactory, releaseFactory, imageFactory, releaseLookupEngine, audioMetaDataHelper);
 }
Exemple #11
0
 public FileProcessor(IRoadieSettings configuration, IHttpEncoder httpEncoder, string destinationRoot, IRoadieDbContext context, ICacheManager cacheManager, ILogger logger, IArtistLookupEngine artistLookupEngine, IArtistFactory artistFactory, IReleaseFactory releaseFactory, IImageFactory imageFactory, IReleaseLookupEngine releaseLookupEngine, IAudioMetaDataHelper audioMetaDataHelper)
     : base(configuration, httpEncoder, destinationRoot, context, cacheManager, logger, artistLookupEngine, artistFactory, releaseFactory, imageFactory, releaseLookupEngine, audioMetaDataHelper)
 {
 }
Exemple #12
0
        public FactoryBase(IRoadieSettings configuration, IRoadieDbContext context, ICacheManager cacheManager, ILogger logger, IHttpEncoder httpEncoder, IArtistLookupEngine artistLookupEngine, IReleaseLookupEngine releaseLookupEngine)
        {
            this.Configuration = configuration;
            this.DbContext     = context;
            this.CacheManager  = cacheManager;
            this.Logger        = logger;
            this.HttpEncoder   = httpEncoder;

            this.ArtistLookupEngine  = artistLookupEngine;
            this.ReleaseLookupEngine = releaseLookupEngine;
        }
Exemple #13
0
 public PluginBase(IRoadieSettings configuration, IHttpEncoder httpEncoder, IArtistFactory artistFactory, IReleaseFactory releaseFactory, IImageFactory imageFactory, ICacheManager cacheManager, ILogger logger, IArtistLookupEngine artistLookupEngine, IReleaseLookupEngine releaseLookupEngine)
 {
     this.Configuration       = configuration;
     this.HttpEncoder         = httpEncoder;
     this.ArtistFactory       = artistFactory;
     this.ReleaseFactory      = releaseFactory;
     this.ImageFactory        = imageFactory;
     this.CacheManager        = cacheManager;
     this.Logger              = logger;
     this.ArtistLookupEngine  = artistLookupEngine;
     this.ReleaseLookupEngine = releaseLookupEngine;
 }
        public AudioMetaDataHelper(IRoadieSettings configuration, IHttpEncoder httpEncoder, IRoadieDbContext context, IMusicBrainzProvider musicBrainzHelper,
                                   ILastFmHelper lastFmHelper, ICacheManager cacheManager, ILogger logger, IArtistLookupEngine artistLookupEngine,
                                   IImageFactory imageFactory, IFileNameHelper filenameHelper, IID3TagsHelper id3TagsHelper)
        {
            this.Configuration  = configuration;
            this.HttpEncoder    = httpEncoder;
            this.CacheManager   = cacheManager;
            this.Logger         = logger;
            this.ImageFactory   = ImageFactory;
            this.FileNameHelper = filenameHelper;
            this.ID3TagsHelper  = id3TagsHelper;

            this.MusicBrainzProvider = musicBrainzHelper;
            this.LastFmHelper        = lastFmHelper;

            this.ArtistLookupEngine = artistLookupEngine;

            this.DoParseFromFileName = configuration.Processing.DoParseFromFileName;
            this.DoParseFromDiscogsDBFindingTrackForArtist = configuration.Processing.DoParseFromDiscogsDBFindingTrackForArtist;
            this.DoParseFromDiscogsDB   = configuration.Processing.DoParseFromDiscogsDB;
            this.DoParseFromMusicBrainz = configuration.Processing.DoParseFromMusicBrainz;
            this.DoParseFromLastFM      = configuration.Processing.DoParseFromLastFM;
        }