static void Main(string[] args) { MediaScanner scanner = new MediaScanner(); scanner.TreeScan("E:\\Music"); Console.ReadLine(); }
public MediaImporter(ILogger logger, IMediaFileSystemHelper fsHelper, IUnitOfWorkService unitOfWorkService) { this.Logger = logger; this.MediaFSHelper = fsHelper; this.UnitOfWorkService = unitOfWorkService; this.scanner = new MediaScanner(this.Logger, this.UnitOfWorkService, this.MediaFSHelper); this.monitor = new MediaMonitor(this.Logger, this.UnitOfWorkService, this.MediaFSHelper); }
public MediaScanningController(IMediaLibrary index, MediaScanner scanner) { Index = index ?? throw new ArgumentNullException(nameof(index)); Scanner = scanner ?? throw new ArgumentNullException(nameof(scanner)); }