Change TagHelperDescriptor to 1 ctor so it can be deserialized.

Made existing ctor that was only ever used in Razor tests to be internal.
This commit is contained in:
N. Taylor Mullen 2014-12-05 15:08:39 -08:00
parent cc0d5dd324
commit c2fae3b6fc
1 changed files with 5 additions and 11 deletions

View File

@ -12,18 +12,12 @@ namespace Microsoft.AspNet.Razor.TagHelpers
public class TagHelperDescriptor public class TagHelperDescriptor
{ {
/// <summary> /// <summary>
/// Instantiates a new instance of the <see cref="TagHelperDescriptor"/> class. /// Internal for testing.
/// </summary> /// </summary>
/// <param name="tagName">The tag name that the tag helper targets. '*' indicates a catch-all internal TagHelperDescriptor([NotNull] string tagName,
/// <see cref="TagHelperDescriptor"/> which applies to every HTML tag.</param> [NotNull] string typeName,
/// <param name="typeName">The full name of the tag helper class.</param> [NotNull] string assemblyName,
/// <param name="tagHelperAssemblyName">The name of the assembly containing the tag helper class.</param> ContentBehavior contentBehavior)
/// <param name="contentBehavior">The <see cref="TagHelpers.ContentBehavior"/>
/// of the tag helper.</param>
public TagHelperDescriptor([NotNull] string tagName,
[NotNull] string typeName,
[NotNull] string assemblyName,
ContentBehavior contentBehavior)
: this(tagName, : this(tagName,
typeName, typeName,
assemblyName, assemblyName,