예제 #1
0
 public HtmlTagNodeConverter(
     IRazorTextNodeFactory textNodeFactory,
     IRazorNodeConverterProvider nodeConverterProvider,
     IWebFormsParser webFormsParser)
 {
     this.textNodeFactory       = textNodeFactory;
     this.nodeConverterProvider = nodeConverterProvider;
     this.webFormsParser        = webFormsParser;
     converter = new WebFormsToRazorConverter(this.nodeConverterProvider);
     renderer  = new RazorViewRenderer(new RazorNodeRendererProvider());
 }
 public RazorNodeConverterProvider(
     IRazorDirectiveNodeFactory directiveNodeFactory,
     IRazorSectionNodeFactory sectionNodeFactory,
     IRazorCodeNodeFactory codeNodeFactory,
     IRazorTextNodeFactory textNodeFactory,
     IRazorCommentNodeFactory commentNodeFactory,
     IRazorExpressionNodeFactory expressionNodeFactory,
     IContentTagConverterConfiguration contentTagConverterConfig,
     IWebFormsParser webFormsParser)
 {
     NodeConverters = new INodeConverter <IRazorNode>[]
     {
         new DirectiveConverter(directiveNodeFactory),
         new ContentTagConverter(this, sectionNodeFactory, contentTagConverterConfig),
         new CodeGroupConverter(this),
         new CodeBlockConverter(codeNodeFactory),
         new HtmlTagNodeConverter(textNodeFactory, this, webFormsParser),
         new TextNodeConverter(textNodeFactory),
         new CommentNodeConverter(commentNodeFactory),
         new ExpressionBlockConverter(expressionNodeFactory)
     };
 }