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:
parent
a490abc6e8
commit
f6547d63e8
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue