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
{
/// <summary>
/// Instantiates a new instance of the <see cref="TagHelperDescriptor"/> class.
/// Internal for testing.
/// </summary>
/// <param name="tagName">The tag name that the tag helper targets. '*' indicates a catch-all
/// <see cref="TagHelperDescriptor"/> which applies to every HTML tag.</param>
/// <param name="typeName">The full name of the tag helper class.</param>
/// <param name="tagHelperAssemblyName">The name of the assembly containing the tag helper class.</param>
/// <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)
internal TagHelperDescriptor([NotNull] string tagName,
[NotNull] string typeName,
[NotNull] string assemblyName,
ContentBehavior contentBehavior)
: this(tagName,
typeName,
assemblyName,