public CrawlEventGenerator(IMetaDataStorage storage, IFileSystemInfoFactory fsFactory = null) { if (storage == null) { throw new ArgumentNullException("storage"); } this.storage = storage; if (fsFactory == null) { this.fsFactory = new FileSystemInfoFactory(); } else { this.fsFactory = fsFactory; } this.localEventGenerator = new LocalEventGenerator(this.storage, this.fsFactory); this.remoteEventGenerator = new RemoteEventGenerator(this.storage); }
public CrawlEventGenerator(IMetaDataStorage storage, IFileSystemInfoFactory fsFactory = null) { if (storage == null) { throw new ArgumentNullException("Given storage is null"); } this.storage = storage; if (fsFactory == null) { this.fsFactory = new FileSystemInfoFactory(); } else { this.fsFactory = fsFactory; } this.localEventGenerator = new LocalEventGenerator(this.storage, this.fsFactory); this.remoteEventGenerator = new RemoteEventGenerator(this.storage); }