Update RazorView.RenderAsync to be virtual

Would be nice if this method is virtual so people can extend the RazorView easily, this functionality is available in the current MVC which I utilize.
This commit is contained in:
Shannon Deminick 2014-08-15 15:20:19 -06:00 committed by Pranav K
parent a490abc6e8
commit f6547d63e8
1 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ namespace Microsoft.AspNet.Mvc.Razor
public bool ExecuteViewHierarchy { get; set; } public bool ExecuteViewHierarchy { get; set; }
/// <inheritdoc /> /// <inheritdoc />
public async Task RenderAsync([NotNull] ViewContext context) public virtual async Task RenderAsync([NotNull] ViewContext context)
{ {
if (ExecuteViewHierarchy) if (ExecuteViewHierarchy)
{ {
@ -132,4 +132,4 @@ namespace Microsoft.AspNet.Mvc.Razor
await bodyWriter.CopyToAsync(context.Writer); await bodyWriter.CopyToAsync(context.Writer);
} }
} }
} }