コード例 #1
0
        public string ProcessBatch(TextTemplateBatch textTemplateBatch)
        {
            var pathToExtractZipTo = getWorkingFolderPath.GetPathToWorkingFolder() +
                                     TextTemplateBatchManagerSettings.TextTemplateBatchProcessTemporaryFolderName +
                                     Path.DirectorySeparatorChar +
                                     guidGetter.GetGuid();

            fileSystem.CreateFolder(pathToExtractZipTo);

            var pathToZip = getWorkingFolderPath.GetPathToWorkingFolder() +
                            TextTemplateBatchManagerSettings.TextTemplateBatchFileUploadFolderName +
                            Path.DirectorySeparatorChar +
                            textTemplateBatch.Id +
                            Path.DirectorySeparatorChar + textTemplateBatch.ZipFilename;

            textTemplateZipProcessor.ProcessZip(pathToZip, pathToExtractZipTo);

            return(pathToExtractZipTo);
        }
コード例 #2
0
 public string SaveAndReturnId(TextTemplateBatch textTemplateBatch)
 {
     return(easyObjectStore.SaveAndReturnId(textTemplateBatch));
 }