/// <summary> /// Initializes a new instance of the <see cref="LibraryManagerService" /> class. /// </summary> /// <param name="container">The container.</param> /// <param name="fileStorer">The file storer.</param> public LibraryManagerService(IUnityContainer container, IDataPersister <StorableTaggedFile> fileStorer) { container.Guard("container"); fileStorer.Guard("fileStorer"); this.container = container; this.fileStorer = fileStorer; }
/// <summary> /// calls <see cref="ThreadedResultWorker{TArgs,TCompletedArgs}" /> /// </summary> /// <param name="infoBuilder">The info builder.</param> /// <param name="storageAdapter">The storage adapter.</param> /// <param name="logger">The logger.</param> /// <param name="configurationManager">The configuration manager.</param> /// <param name="threadManager">The thread manager service.</param> /// <param name="publicTransport">The public transport.</param> public RecursiveAsyncFileScanner(IInfoBuilder <TInfo> infoBuilder, IDataPersister <TInfo> storageAdapter, IConfigurationManager configurationManager, IThreadManager threadManager, IPublicTransport publicTransport, ILogger logger) : base(logger) { infoBuilder.Guard("infoBuilder"); storageAdapter.Guard("storageAdapter"); configurationManager.Guard("configurationManager"); threadManager.Guard("threadManagerService"); publicTransport.Guard("publicTransport"); this.infoBuilder = infoBuilder; this.storageAdapter = storageAdapter; this.threadManager = threadManager; this.publicTransport = publicTransport; pageSize = configurationManager.GetValue("PageSize", 2000, "File Scanner"); scanPaged = configurationManager.GetValue("ScanPaged", true, "File Scanner"); }