public TrackService(ITrackRepository trackRepository) { _trackRepository = trackRepository; }
public IndexingService(ISQLiteConnectionFactory factory, ICacheService cacheService, ITrackRepository trackRepository, IAlbumRepository albumRepository, IGenreRepository genreRepository, IArtistRepository artistRepository, IFolderRepository folderRepository, IFileMetadataFactory fileMetadataFactory) { this.cacheService = cacheService; this.trackRepository = trackRepository; this.albumRepository = albumRepository; this.genreRepository = genreRepository; this.artistRepository = artistRepository; this.folderRepository = folderRepository; this.factory = factory; this.fileMetadataFactory = fileMetadataFactory; this.watcherManager = new FolderWatcherManager(this.folderRepository); this.cache = new IndexerCache(this.factory); SettingsClient.SettingChanged += SettingsClient_SettingChanged; this.watcherManager.FoldersChanged += WatcherManager_FoldersChanged; this.isIndexing = false; }
public UserRepository(IGenreRepository genreRepo, ITrackRepository trackRepo, IArtistRepository artistRepo, IPartRepository partRepo, ITagRepository tagRepo) { }
public TrackService(ITrackRepository trackRepository, UserManager <User> userManager) { this.trackRepository = trackRepository; this.userManager = userManager; }
public TrackController(ITrackRepository repo) { _repo = repo; }
//private readonly IHubConfig<CommandHub> _hub; public AnalyticsController(ITrackRepository trackRepository, IAnalyticCommandSender analyticCommandSender /*, IHubConfig<CommandHub> hub*/) { _repo = trackRepository; _analyticCommandSender = analyticCommandSender; //_hub = hub; }
public TrackService(ITrackRepository trackRepository, IMovieRespository movieRepository, IUserRepository userRepository) { _trackRepository = trackRepository; _movieRepository = movieRepository; _userRepository = userRepository; }
public CollectionService(IPlaylistRepository playlistRepository, IAlbumRepository albumRepository, IArtistRepository artistRepository, ITrackRepository trackRepository, IGenreRepository genreRepository, IFolderRepository folderRepository) { this.playlistRepository = playlistRepository; this.albumRepository = albumRepository; this.artistRepository = artistRepository; this.trackRepository = trackRepository; this.genreRepository = genreRepository; this.folderRepository = folderRepository; this.markedFolders = new List <Folder>(); }
public CollectionService(IAlbumRepository albumRepository, IArtistRepository artistRepository, ITrackRepository trackRepository, IGenreRepository genreRepository, IFolderRepository folderRepository, ICacheService cacheService, IPlaybackService playbackService) { this.albumRepository = albumRepository; this.artistRepository = artistRepository; this.trackRepository = trackRepository; this.genreRepository = genreRepository; this.folderRepository = folderRepository; this.cacheService = cacheService; this.playbackService = playbackService; this.markedFolders = new List <Folder>(); this.saveMarkedFoldersTimer.Elapsed += SaveMarkedFoldersTimer_Elapsed; }
public TrackController(ITrackRepository repository) { this._repoTrack = repository; }
public TrackController(ITrackRepository repository) { Requires.NotNull(repository); _repository = repository; }
public TrackController(ITrackRepository trackRepository) { _repository = trackRepository; }
public TrackService(ITrackRepository trackReporistory, IMapper mapper, ILogger <TrackEntity> logger) { _trackRepository = trackReporistory; _mapper = mapper; _logger = logger; }
public LocalTracksViewModel(IMediaPlayerController mp, ITrackRepository repository) : base(mp, repository) { }
public MainPageViewModel(ITrackRepository repository) { _repository = repository; Initialize(); }
public SettingsCollectionViewModel(IIndexingService indexingService, ICollectionService collectionService, ITrackRepository trackRepository) { this.indexingService = indexingService; this.collectionService = collectionService; this.trackRepository = trackRepository; this.RefreshNowCommand = new DelegateCommand(this.RefreshNow); this.GetCheckBoxesAsync(); }
public TracksController(ITrackRepository repo, IGeoService geoService, ITrackSender sender) { _repo = repo; _geoService = geoService; _trackSender = sender; }
public void AlbumTestFixtureSetup() { _connection = new SqlConnection(ConfigurationManager.ConnectionStrings["default"].ConnectionString); _trackRepository = new TrackRepository(_connection); _albumRepository = new AlbumRepository(_connection, _trackRepository); }
public TrackService(ITrackRepository trackRepository, IUnitOfWork unitOfWork) { this._trackRepository = trackRepository; this._unitOfWork = unitOfWork; }
public MetadataService(IPlaybackService playbackService, ICacheService cacheService, ITrackRepository trackRepository, IAlbumArtworkRepository albumArtworkRepository) { this.playbackService = playbackService; this.cacheService = cacheService; this.trackRepository = trackRepository; this.albumArtworkRepository = albumArtworkRepository; this.updater = new FileMetadataUpdater(this.playbackService, this.trackRepository); }
public TracksController(ITrackRepository trackRepository) { _trackRepository = trackRepository; includeProperties = Expressions.LoadTrackNavigations(); }
public TrackService(IUnitOfWork unitOfWork, ITrackRepository trackRepository) { _unitOfWork = unitOfWork; _trackRepository = trackRepository; }
public TrackRepositoryTestClass(ITrackRepository trackRepository) { _trackRepository = trackRepository; }
public TagsInTracksController(ITrackRepository trackRepository, ITagRepository tagRepository, ITagsInTracksRepository tagsintracksRepository) { this.trackRepository = trackRepository; this.tagRepository = tagRepository; this.tagsintracksRepository = tagsintracksRepository; }
public TrackService(ITrackRepository trackRepository, IComposerService composerService) { _trackRepository = trackRepository; _composerService = composerService; }
public TraineeController(ITraineeRepository _traineeRepository, ITrackRepository trackRepository) { traineeRepository = _traineeRepository; this.trackRepository = trackRepository; }
public MetadataService(ICacheService cacheService, IPlaybackService playbackService, ITrackRepository trackRepository, ITrackStatisticRepository trackStatisticRepository, IFileMetadataFactory metadataFactory, IContainerProvider container) { this.cacheService = cacheService; this.playbackService = playbackService; this.trackStatisticRepository = trackStatisticRepository; this.trackRepository = trackRepository; this.metadataFactory = metadataFactory; this.container = container; this.fileMetadataDictionary = new Dictionary <string, IFileMetadata>(); this.updateFileMetadataTimer = new Timer(); this.updateFileMetadataTimer.Interval = this.updateFileMetadataLongTimeout; this.updateFileMetadataTimer.Elapsed += async(_, __) => await this.UpdateFileMetadataAsync(); this.playbackService.PlaybackStopped += async(_, __) => await this.UpdateFileMetadataAsync(); this.playbackService.PlaybackFailed += async(_, __) => await this.UpdateFileMetadataAsync(); this.playbackService.PlaybackSuccess += async(_, __) => await this.UpdateFileMetadataAsync(); }
public TrackService(ITrackRepository trackRepository, Logger logger) { _trackRepository = trackRepository; _logger = logger; }
/// <summary> /// Constructor which allows Dependency Injection. This can be useful for Unit Testing. /// </summary> /// <param name="container"></param> /// <param name="indexingService"></param> /// <param name="eventAggregator"></param> /// <param name="playbackService"></param> /// <param name="searchService"></param> /// <param name="dialogService"></param> /// <param name="collectionService"></param> /// <param name="trackRepository"></param> /// <param name="i18nService"></param> /// <remarks></remarks> public CommonTracksViewModel(IUnityContainer container, IIndexingService indexingService, IEventAggregator eventAggregator, IPlaybackService playbackService, ISearchService searchService, IDialogService dialogService, ICollectionService collectionService, ITrackRepository trackRepository, IMetadataService metadataService, II18nService i18nService) { // Unity Container this.container = container; // EventAggregator this.eventAggregator = eventAggregator; // Services this.indexingService = indexingService; this.playbackService = playbackService; this.searchService = searchService; this.dialogService = dialogService; this.collectionService = collectionService; this.metadataService = metadataService; this.i18nService = i18nService; // Repositories this.trackRepository = trackRepository; // Initialize this.Initialize(); }
private List <int> playbackOrder = new List <int>(); // Playback order of queued tracks (Contains the indexes of list the queued tracks) public QueueManager(ITrackRepository trackRepository) { this.trackRepository = trackRepository; }
public AlbumRepository(IDbConnection database, ITrackRepository trackRepos) { _database = database; _trackRepos = trackRepos; }
public MetadataService(ICacheService cacheService, IPlaybackService playbackService, ITrackRepository trackRepository, ITrackStatisticRepository trackStatisticRepository, IAlbumRepository albumRepository, IGenreRepository genreRepository, IArtistRepository artistRepository) { this.cacheService = cacheService; this.playbackService = playbackService; this.trackStatisticRepository = trackStatisticRepository; this.trackRepository = trackRepository; this.albumRepository = albumRepository; this.genreRepository = genreRepository; this.artistRepository = artistRepository; this.fileMetadataDictionary = new Dictionary <string, FileMetadata>(); this.updateFileMetadataTimer = new Timer(); this.updateFileMetadataTimer.Interval = this.updateFileMetadataLongTimeout; this.updateFileMetadataTimer.Elapsed += async(_, __) => await this.UpdateFileMetadataAsync(); this.playbackService.PlaybackStopped += async(_, __) => await this.UpdateFileMetadataAsync(); this.playbackService.PlaybackFailed += async(_, __) => await this.UpdateFileMetadataAsync(); this.playbackService.PlaybackSuccess += async(_) => await this.UpdateFileMetadataAsync(); }
public AudioService(ITrackRepository trackRepository, IAudioRepository audioRepository, IUnitOfWork unitOfWork) { this._trackRepository = trackRepository; this._audioRepository = audioRepository; this._unitOfWork = unitOfWork; }
public TrackDomainService(ITrackRepository trackRepository, IUnitOfWork unitOfWork) { this.trackRepository = trackRepository; this.unitOfWork = unitOfWork; }
public HomeController(ITrackRepository trackRepo, ApplicationDbContext con) { _con = con; _trackRepo = trackRepo; }
public TrackController(ITrackRepository trackRepository) { repository = trackRepository; }
public CloudTracksViewModel(IMediaPlayerController mediaController, ITrackRepository repository) : base( mediaController, repository) { }
public TracksController(ITrackRepository trackRepository) { this.trackRepository = trackRepository; }
public LikesController(ITrackRepository trackRepository, ILikeRepository likeRepository) { this.trackRepository = trackRepository; this.likeRepository = likeRepository; }