public static string Index(string folderPath, IndexerSettings config) { Indexer indexer = null; switch (config.Output) { case IndexerOutput.Html: indexer = new IndexerHtml(config); break; case IndexerOutput.Txt: indexer = new IndexerText(config); break; case IndexerOutput.Xml: indexer = new IndexerXml(config); break; } return indexer.Index(folderPath); }
public static string Index(string folderPath, IndexerSettings config) { Indexer indexer = null; switch (config.Output) { case IndexerOutput.Html: indexer = new IndexerHtml(config); break; case IndexerOutput.Txt: indexer = new IndexerText(config); break; case IndexerOutput.Xml: indexer = new IndexerXml(config); break; } return(indexer.Index(folderPath)); }
public IndexerXml(IndexerSettings indexerSettings) : base(indexerSettings) { }
public IndexerHtml(IndexerSettings indexerSettings) : base(indexerSettings) { }
public IndexerText(IndexerSettings indexerSettings) : base(indexerSettings) { }
protected Indexer(IndexerSettings indexerSettings) { config = indexerSettings; }