Exemplo n.º 1
0
        protected virtual void Dispose(bool disposing)
        {
            if (disposed || !disposing)
            {
                return;
            }

            ProcessedDocumentCache.Dispose();
            processedDocumentCache = null;

            disposed = true;
        }
Exemplo n.º 2
0
        public TransformationData(Markdown markdown, List <ErrorDetail> errorList, List <ImageConversion> imageDetails,
                                  List <AttachmentConversionDetail> attachNames, FolderDetails currentFolderDetails, IEnumerable <string> languagesLinksToGenerate = null, bool nonDynamicHTMLOutput = false)
        {
            NonDynamicHTMLOutput     = nonDynamicHTMLOutput;
            AttachNames              = attachNames;
            CurrentFolderDetails     = new FolderDetails(currentFolderDetails);
            ErrorList                = errorList;
            ImageDetails             = imageDetails;
            LanguagesLinksToGenerate = languagesLinksToGenerate ?? markdown.SupportedLanguages;

            HtmlBlocks          = new Dictionary <string, string>();
            FoundDoxygenSymbols = new HashSet <string>();
            Markdown            = markdown;

            processedDocumentCache = new ProcessedDocumentCache(currentFolderDetails.GetThisFileName(), this);
        }