private StoreReport RunAnalysis() { var gatherer = new StoreDataGatherer(); var crawler= new StoreCrawler(gatherer); if (_store.Source.ConnectionString.Type != ConnectionType.Embedded) { throw new InvalidOperationException("Cannot run analysis on a remote store."); } var storePath = _store.Source.ConnectionString.StoresDirectory; if (String.IsNullOrEmpty(storePath)) { throw new InvalidOperationException("No StoresDirectory parameter found in connection string."); } crawler.Run(storePath); return gatherer.Report; }
private StoreReport RunAnalysis() { var gatherer = new StoreDataGatherer(); var crawler = new StoreCrawler(gatherer); if (_store.Source.ConnectionString.Type != ConnectionType.Embedded) { throw new InvalidOperationException("Cannot run analysis on a remote store."); } var storePath = _store.Source.ConnectionString.StoresDirectory; if (String.IsNullOrEmpty(storePath)) { throw new InvalidOperationException("No StoresDirectory parameter found in connection string."); } crawler.Run(storePath); return(gatherer.Report); }