コード例 #1
0
ファイル: Importer.cs プロジェクト: AksetVow/Generator
        public IList<Article> Import(params string[] files)
        {
            ImportData importData = new ImportData(files);

            var result = Import(importData);

            return result;
        }
コード例 #2
0
ファイル: Importer.cs プロジェクト: AksetVow/Generator
        public IList<Article> Import(ImportData importData)
        {
            if (ImportConfiguration == null)
                throw new NullReferenceException("No import configuration");

            _currentDestination = CreateTemporaryFolder();

            if (ImportConfiguration.IsArchive)
            {
                return ImportArchives(importData.FilePathes);
            }
            else
            {
                return ImportFiles(importData.FilePathes, true);
            }
        }