示例#1
0
        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);
        }
示例#2
0
        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));
        }
示例#3
0
 public IndexerXml(IndexerSettings indexerSettings)
     : base(indexerSettings)
 {
 }
示例#4
0
 public IndexerHtml(IndexerSettings indexerSettings)
     : base(indexerSettings)
 {
 }
示例#5
0
 public IndexerText(IndexerSettings indexerSettings)
     : base(indexerSettings)
 {
 }
示例#6
0
 protected Indexer(IndexerSettings indexerSettings)
 {
     config = indexerSettings;
 }
示例#7
0
 protected Indexer(IndexerSettings indexerSettings)
 {
     config = indexerSettings;
 }
示例#8
0
 public IndexerText(IndexerSettings indexerSettings)
     : base(indexerSettings)
 {
 }