Exemple #1
0
 public HtmlDecoder(TextWriter writer, ITagHelperProvider tagHelperProvider)
 {
     _writer              = writer;
     _tagHelperProvider   = tagHelperProvider;
     _tagDecoders         = new Stack <ITagDecoder>();
     _tagHelpers          = new Stack <ITagHelper>();
     _tagHelperDictionary = new Dictionary <ITagDecoder, ITagHelper>();
     _chars   = new StringBuilder();
     _handler = AppendNonTag;
 }
 public HtmlDecoder(TextWriter writer, ITagHelperProvider tagHelperProvider)
 {
     _writer = writer;
     _tagHelperProvider = tagHelperProvider;
     _tagDecoders = new Stack<ITagDecoder>();
     _tagHelpers = new Stack<ITagHelper>();
     _tagHelperDictionary = new Dictionary<ITagDecoder, ITagHelper>();
     _chars = new StringBuilder();
     _handler = AppendNonTag;
 }
Exemple #3
0
 public HtmlProcessor(TextWriter writer, ITagHelperProvider tagHelperProvider)
 {
     _decoder     = writer.Encoding.GetDecoder();
     _writer      = writer;
     _htmlDecoder = new HtmlDecoder(writer, tagHelperProvider);
 }
 public HtmlProcessor(TextWriter writer, ITagHelperProvider tagHelperProvider)
 {
     _decoder = writer.Encoding.GetDecoder();
     _writer = writer;
     _htmlDecoder = new HtmlDecoder(writer, tagHelperProvider);
 }
 public TagHelperWriter(TextWriter output, ITagHelperProvider tagHelperProvider)
     : base(output.FormatProvider)
 {
     _output    = output;
     _processor = new HtmlProcessor(output, tagHelperProvider);
 }