protected DocumentEntitySection GetConfigSection() { // Load From Web.Config DocumentEntitySection section = (DocumentEntitySection)ConfigurationManager.GetSection("documentEntity"); return(section); }
protected virtual IDocumentTemplateProcessor FindTemplateProcessor(string extension) { if (string.IsNullOrEmpty(extension)) { return(null); } DocumentEntitySection section = GetConfigSection(); if (section == null) { return(null); } string typeName = section.TemplateProcessors.FindTypeName(extension); if (string.IsNullOrEmpty(typeName)) { return(null); } return(AssemblyUtil.LoadObject <IDocumentTemplateProcessor>(typeName)); }