예제 #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;
 }
예제 #2
0
        public AdminService(IRoadieSettings configuration,
                            IHttpEncoder httpEncoder,
                            IHttpContext httpContext,
                            data.IRoadieDbContext context,
                            ICacheManager cacheManager,
                            ILogger <ArtistService> logger,
                            IHubContext <ScanActivityHub> scanActivityHub
                            )
            : base(configuration, httpEncoder, context, cacheManager, logger, httpContext)
        {
            this.ScanActivityHub              = scanActivityHub;
            this.EventMessageLogger           = new EventMessageLogger();
            this.EventMessageLogger.Messages += EventMessageLogger_Messages;

            this.MusicBrainzProvider = new MusicBrainzProvider(configuration, cacheManager, MessageLogger);
            this.LastFmHelper        = new LastFmHelper(configuration, cacheManager, MessageLogger);
            this.FileNameHelper      = new FileNameHelper(configuration, cacheManager, MessageLogger);
            this.ID3TagsHelper       = new ID3TagsHelper(configuration, cacheManager, MessageLogger);

            this.ArtistLookupEngine  = new ArtistLookupEngine(configuration, httpEncoder, context, cacheManager, MessageLogger);
            this.LabelLookupEngine   = new LabelLookupEngine(configuration, httpEncoder, context, cacheManager, MessageLogger);
            this.ReleaseLookupEngine = new ReleaseLookupEngine(configuration, httpEncoder, context, cacheManager, MessageLogger, this.ArtistLookupEngine, this.LabelLookupEngine);
            this.ImageFactory        = new ImageFactory(configuration, httpEncoder, context, cacheManager, MessageLogger, this.ArtistLookupEngine, this.ReleaseLookupEngine);
            this.LabelFactory        = new LabelFactory(configuration, httpEncoder, context, cacheManager, MessageLogger, this.ArtistLookupEngine, this.ReleaseLookupEngine);
            this.AudioMetaDataHelper = new AudioMetaDataHelper(configuration, httpEncoder, context, this.MusicBrainzProvider, this.LastFmHelper, cacheManager,
                                                               MessageLogger, this.ArtistLookupEngine, this.ImageFactory, this.FileNameHelper, this.ID3TagsHelper);
            this.ReleaseFactory = new ReleaseFactory(configuration, httpEncoder, context, cacheManager, MessageLogger, this.ArtistLookupEngine, this.LabelFactory, this.AudioMetaDataHelper, this.ReleaseLookupEngine);
            this.ArtistFactory  = new ArtistFactory(configuration, httpEncoder, context, cacheManager, MessageLogger, this.ArtistLookupEngine, this.ReleaseFactory, this.ImageFactory, this.ReleaseLookupEngine, this.AudioMetaDataHelper);
        }
예제 #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;
 }
예제 #4
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;
        }
예제 #5
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;
 }
예제 #6
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;
        }
예제 #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;
 }
예제 #8
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;
 }
예제 #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)
 {
 }
예제 #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);
 }
예제 #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)
 {
 }
예제 #12
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;
        }