コード例 #1
0
 public PlayActivityService(IRoadieSettings configuration, IHttpEncoder httpEncoder, IHttpContext httpContext,
                            IRoadieDbContext dbContext, ICacheManager cacheManager, ILogger <PlayActivityService> logger,
                            IScrobbleHandler scrobbleHandler, IHubContext <PlayActivityHub> playActivityHub)
     : base(configuration, httpEncoder, dbContext, cacheManager, logger, httpContext)
 {
     PlayActivityHub  = playActivityHub;
     ScrobblerHandler = scrobbleHandler;
 }
コード例 #2
0
 public ScrobblerIntegrationBase(IRoadieSettings configuration, ILogger logger, IRoadieDbContext dbContext,
                                 ICacheManager cacheManager, IHttpContext httpContext)
 {
     Logger        = logger;
     Configuration = configuration;
     DbContext     = dbContext;
     CacheManager  = cacheManager;
     HttpContext   = httpContext;
 }
コード例 #3
0
ファイル: LastFmHelper.cs プロジェクト: jindal1979/roadie
 public LastFmHelper(IRoadieSettings configuration, ICacheManager cacheManager, ILogger <LastFmHelper> logger,
                     IRoadieDbContext dbContext, IHttpEncoder httpEncoder)
     : base(configuration, cacheManager, logger)
 {
     _apiKey = configuration.Integrations.ApiKeys.FirstOrDefault(x => x.ApiName == "LastFMApiKey") ??
               new ApiKey();
     DbContext   = dbContext;
     HttpEncoder = httpEncoder;
 }
コード例 #4
0
 public StatisticsService(IRoadieSettings configuration,
                          IHttpEncoder httpEncoder,
                          IHttpContext httpContext,
                          IRoadieDbContext context,
                          ICacheManager cacheManager,
                          ILogger <StatisticsService> logger)
     : base(configuration, httpEncoder, context, cacheManager, logger, httpContext)
 {
 }
コード例 #5
0
 public GenreService(IRoadieSettings configuration,
                     IHttpEncoder httpEncoder,
                     IHttpContext httpContext,
                     IRoadieDbContext dbContext,
                     ICacheManager cacheManager,
                     ILogger <GenreService> logger)
     : base(configuration, httpEncoder, dbContext, cacheManager, logger, httpContext)
 {
 }
コード例 #6
0
 public LookupEngineBase(IRoadieSettings configuration, IHttpEncoder httpEncoder, IRoadieDbContext context,
                         ICacheManager cacheManager, ILogger logger)
 {
     Configuration = configuration;
     HttpEncoder   = httpEncoder;
     DbContext     = context;
     CacheManager  = cacheManager;
     Logger        = logger;
 }
コード例 #7
0
 public ServiceBase(IRoadieSettings configuration, IHttpEncoder httpEncoder, IRoadieDbContext context,
                    ICacheManager cacheManager, ILogger logger, IHttpContext httpContext)
 {
     _configuration = configuration;
     _httpEncoder   = httpEncoder;
     _dbContext     = context;
     _cacheManager  = cacheManager;
     _logger        = logger;
     _httpContext   = httpContext;
 }
コード例 #8
0
ファイル: FactoryBase.cs プロジェクト: liamdawson/roadie
        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;
        }
コード例 #9
0
ファイル: BookmarkService.cs プロジェクト: jindal1979/roadie
 public BookmarkService(IRoadieSettings configuration,
                        IHttpEncoder httpEncoder,
                        IHttpContext httpContext,
                        IRoadieDbContext context,
                        ICacheManager cacheManager,
                        IUserService userService,
                        ILogger <BookmarkService> logger)
     : base(configuration, httpEncoder, context, cacheManager, logger, httpContext)
 {
     UserService = userService;
 }
コード例 #10
0
ファイル: LabelService.cs プロジェクト: jindal1979/roadie
 public LabelService(IRoadieSettings configuration,
                     IHttpEncoder httpEncoder,
                     IHttpContext httpContext,
                     IRoadieDbContext context,
                     ICacheManager cacheManager,
                     ILogger <LabelService> logger,
                     IBookmarkService bookmarkService)
     : base(configuration, httpEncoder, context, cacheManager, logger, httpContext)
 {
     BookmarkService = bookmarkService;
 }
コード例 #11
0
ファイル: ScrobbleHandler.cs プロジェクト: jindal1979/roadie
        public ScrobbleHandler(IRoadieSettings configuration, ILogger logger, IRoadieDbContext dbContext, ICacheManager cacheManager, RoadieScrobbler roadieScrobbler)
        {
            Logger        = logger;
            Configuration = configuration;
            DbContext     = dbContext;
            var scrobblers = new List <IScrobblerIntegration>
            {
                roadieScrobbler
            };

            Scrobblers = scrobblers;
        }
コード例 #12
0
ファイル: ImageService.cs プロジェクト: jindal1979/roadie
 public ImageService(IRoadieSettings configuration,
                     IHttpEncoder httpEncoder,
                     IHttpContext httpContext,
                     IRoadieDbContext context,
                     ICacheManager cacheManager,
                     ILogger <ImageService> logger,
                     IDefaultNotFoundImages defaultNotFoundImages,
                     IImageSearchManager imageSearchManager)
     : base(configuration, httpEncoder, context, cacheManager, logger, httpContext)
 {
     DefaultNotFoundImages = defaultNotFoundImages;
     ImageSearchManager    = imageSearchManager;
 }
コード例 #13
0
 public DlnaService(IRoadieSettings configuration, IRoadieDbContext dbContext, ICacheManager cacheManager,
                    ILogger logger, IImageService imageService, ITrackService trackService, IPlayActivityService playActivityService)
 {
     Configuration       = configuration;
     DbContext           = dbContext;
     CacheManager        = cacheManager;
     Logger              = logger;
     FriendlyName        = configuration.Dlna.FriendlyName;
     ImageService        = imageService;
     TrackService        = trackService;
     PlayActivityService = playActivityService;
     RandomTrackLimit    = 50;
 }
コード例 #14
0
ファイル: UserService.cs プロジェクト: jindal1979/roadie
 public UserService(IRoadieSettings configuration,
                    IHttpEncoder httpEncoder,
                    IHttpContext httpContext,
                    IRoadieDbContext context,
                    ICacheManager cacheManager,
                    ILogger <ArtistService> logger,
                    UserManager <Library.Identity.User> userManager,
                    ILastFmHelper lastFmHelper
                    )
     : base(configuration, httpEncoder, context, cacheManager, logger, httpContext)
 {
     UserManager  = userManager;
     LastFmHelper = lastFmHelper;
 }
コード例 #15
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;
 }
コード例 #16
0
ファイル: ScrobbleHandler.cs プロジェクト: jindal1979/roadie
        public ScrobbleHandler(IRoadieSettings configuration, ILogger <ScrobbleHandler> logger, IRoadieDbContext dbContext,
                               ICacheManager cacheManager, IHttpEncoder httpEncoder, IHttpContext httpContext,
                               ILastFmHelper lastFmHelper, IRoadieScrobbler roadieScrobbler, ILastFMScrobbler lastFMScrobbler)
        {
            Logger        = logger;
            Configuration = configuration;
            DbContext     = dbContext;
            HttpEncoder   = httpEncoder;
            HttpContext   = httpContext;
            var scrobblers = new List <IScrobblerIntegration>
            {
                roadieScrobbler
            };

            if (configuration.Integrations.LastFmProviderEnabled)
            {
                scrobblers.Add(lastFMScrobbler);
            }
            Scrobblers = scrobblers;
        }
コード例 #17
0
        public ReleaseLookupEngine(IRoadieSettings configuration, IHttpEncoder httpEncoder, IRoadieDbContext context, ICacheManager cacheManager, ILogger logger, IArtistLookupEngine aristLookupEngine, 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);
            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);
        }
コード例 #18
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;
 }
コード例 #19
0
 public PlayActivityService(IRoadieSettings configuration, IRoadieDbContext dbContext, ICacheManager cacheManager,
                            ILogger logger, ScrobbleHandler scrobbleHandler)
     : base(configuration, null, dbContext, cacheManager, logger, null)
 {
     ScrobblerHandler = scrobbleHandler;
 }
コード例 #20
0
        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;
        }
コード例 #21
0
ファイル: ImageService.cs プロジェクト: jindal1979/roadie
 public ImageService(IRoadieSettings configuration, IRoadieDbContext dbContext, ICacheManager cacheManager,
                     ILogger logger, DefaultNotFoundImages defaultNotFoundImages)
     : base(configuration, null, dbContext, cacheManager, logger, null)
 {
     DefaultNotFoundImages = defaultNotFoundImages;
 }
コード例 #22
0
ファイル: RoadieScrobbler.cs プロジェクト: jindal1979/roadie
 public RoadieScrobbler(IRoadieSettings configuration, ILogger <RoadieScrobbler> logger, IRoadieDbContext dbContext,
                        ICacheManager cacheManager, IHttpContext httpContext)
     : base(configuration, logger, dbContext, cacheManager, httpContext)
 {
 }
コード例 #23
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)
 {
 }
コード例 #24
0
ファイル: FolderProcessor.cs プロジェクト: liamdawson/roadie
 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);
 }
コード例 #25
0
ファイル: RoadieScrobbler.cs プロジェクト: jindal1979/roadie
 public RoadieScrobbler(IRoadieSettings configuration, ILogger logger, IRoadieDbContext dbContext, ICacheManager cacheManager)
     : base(configuration, logger, dbContext, cacheManager, null)
 {
 }
コード例 #26
0
 public LastFMScrobbler(IRoadieSettings configuration, ILogger <LastFMScrobbler> logger, IRoadieDbContext dbContext,
                        ICacheManager cacheManager, ILastFmHelper lastFmHelper, IHttpContext httpContext)
     : base(configuration, logger, dbContext, cacheManager, httpContext)
 {
     LastFmHelper = lastFmHelper;
 }
コード例 #27
0
ファイル: FileProcessor.cs プロジェクト: liamdawson/roadie
 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)
 {
 }
コード例 #28
0
 public ArtistLookupEngine(IRoadieSettings configuration, IHttpEncoder httpEncoder, IRoadieDbContext context,
                           ICacheManager cacheManager, ILogger <ArtistLookupEngine> logger, musicbrainz.IMusicBrainzProvider musicBrainzProvider,
                           lastfm.ILastFmHelper lastFmHelper, spotify.ISpotifyHelper spotifyHelper, wikipedia.IWikipediaHelper wikipediaHelper,
                           discogs.IDiscogsHelper discogsHelper, IITunesSearchEngine iTunesSearchEngine)
     : base(configuration, httpEncoder, context, cacheManager, logger)
 {
     ITunesArtistSearchEngine      = iTunesSearchEngine;
     MusicBrainzArtistSearchEngine = musicBrainzProvider;
     LastFmArtistSearchEngine      = lastFmHelper;
     SpotifyArtistSearchEngine     = spotifyHelper;
     WikipediaArtistSearchEngine   = wikipediaHelper;
     DiscogsArtistSearchEngine     = discogsHelper;
 }
コード例 #29
0
 public LabelLookupEngine(IRoadieSettings configuration, IHttpEncoder httpEncoder, IRoadieDbContext context, ICacheManager cacheManager, ILogger logger)
     : base(configuration, httpEncoder, context, cacheManager, logger)
 {
     this.DiscogsLabelSearchEngine = new discogs.DiscogsHelper(this.Configuration, this.CacheManager, this.Logger);
 }
コード例 #30
0
ファイル: ProcessorBase.cs プロジェクト: liamdawson/roadie
        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;
        }