From b1d63f0983b7061a30e0c24bd0af87eeb491ba27 Mon Sep 17 00:00:00 2001 From: Robert Haken Date: Wed, 18 May 2016 13:05:37 +0200 Subject: [PATCH] EmailTagHelper.cs: context.GetChildContentAsync() => output.GetChildContentAsync() --- .../src/AuthoringTagHelpers/TagHelpers/EmailTagHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnet/mvc/views/tag-helpers/authoring/sample/AuthoringTagHelpers/src/AuthoringTagHelpers/TagHelpers/EmailTagHelper.cs b/aspnet/mvc/views/tag-helpers/authoring/sample/AuthoringTagHelpers/src/AuthoringTagHelpers/TagHelpers/EmailTagHelper.cs index 0eac740d0d..8633ec312e 100644 --- a/aspnet/mvc/views/tag-helpers/authoring/sample/AuthoringTagHelpers/src/AuthoringTagHelpers/TagHelpers/EmailTagHelper.cs +++ b/aspnet/mvc/views/tag-helpers/authoring/sample/AuthoringTagHelpers/src/AuthoringTagHelpers/TagHelpers/EmailTagHelper.cs @@ -9,7 +9,7 @@ namespace AuthoringTagHelpers.TagHelpers3 public override async Task ProcessAsync(TagHelperContext context, TagHelperOutput output) { output.TagName = "a"; // Replaces with tag - var content = await context.GetChildContentAsync(); + var content = await output.GetChildContentAsync(); var target = content.GetContent() + "@" + EmailDomain; output.Attributes["href"] = "mailto:" + target; output.Content.SetContent(target);