예제 #1
0
        public static string Index(string folderPath, IndexerSettings settings)
        {
            Indexer indexer = null;

            switch (settings.Output)
            {
            case IndexerOutput.Html:
                indexer = new IndexerHtml(settings);
                break;

            case IndexerOutput.Txt:
                indexer = new IndexerText(settings);
                break;

            case IndexerOutput.Xml:
                indexer = new IndexerXml(settings);
                break;

            case IndexerOutput.Json:
                indexer = new IndexerJson(settings);
                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
파일: Indexer.cs 프로젝트: thebaby/ShareX
        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));
        }
예제 #4
0
        public static string Index(string folderPath, IndexerSettings settings)
        {
            Indexer indexer = null;

            switch (settings.Output)
            {
                case IndexerOutput.Html:
                    indexer = new IndexerHtml(settings);
                    break;
                case IndexerOutput.Txt:
                    indexer = new IndexerText(settings);
                    break;
                case IndexerOutput.Xml:
                    indexer = new IndexerXml(settings);
                    break;
                case IndexerOutput.Json:
                    indexer = new IndexerJson(settings);
                    break;
            }

            return indexer.Index(folderPath);
        }