Ejemplo n.º 1
0
 public RazorNodeConverterProvider(IRazorDirectiveNodeFactory directiveNodeFactory,
                                   IRazorSectionNodeFactory sectionNodeFactory,
                                   IRazorCodeNodeFactory codeNodeFactory,
                                   IRazorTextNodeFactory textNodeFactory,
                                   IRazorCommentNodeFactory commentNodeFactory,
                                   IRazorExpressionNodeFactory expressionNodeFactory,
                                   IContentTagConverterConfiguration contentTagConverterConfig)
 {
     NodeConverters = new INodeConverter <IRazorNode>[] {
         new DirectiveConverter(directiveNodeFactory, textNodeFactory),
         new ContentTagConverter(this, sectionNodeFactory, contentTagConverterConfig),
         new CodeGroupConverter(this),
         new CodeBlockConverter(codeNodeFactory),
         new TextNodeConverter(textNodeFactory),
         new CommentNodeConverter(commentNodeFactory),
         new ExpressionBlockConverter(expressionNodeFactory)
     };
 }
 public RazorNodeConverterProvider(  IRazorDirectiveNodeFactory directiveNodeFactory,
                                     IRazorSectionNodeFactory sectionNodeFactory,
                                     IRazorCodeNodeFactory codeNodeFactory,
                                     IRazorTextNodeFactory textNodeFactory,
                                     IRazorCommentNodeFactory commentNodeFactory,
                                     IRazorExpressionNodeFactory expressionNodeFactory,
                                     IContentTagConverterConfiguration contentTagConverterConfig)
 {
     NodeConverters = new INodeConverter<IRazorNode>[] {
         new DirectiveConverter(directiveNodeFactory),
         new ContentTagConverter(this, sectionNodeFactory, contentTagConverterConfig),
         new CodeGroupConverter(this),
         new CodeBlockConverter(codeNodeFactory),
         new TextNodeConverter(textNodeFactory),
         new CommentNodeConverter(commentNodeFactory),
         new ExpressionBlockConverter(expressionNodeFactory)
     };
 }
Ejemplo n.º 3
0
 public CommentNodeConverter(IRazorCommentNodeFactory nodeFactory)
 {
     CommentNodeFactory = nodeFactory;
 }