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; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task RenderAsync([NotNull] ViewContext context)
|
||||
public virtual async Task RenderAsync([NotNull] ViewContext context)
|
||||
{
|
||||
if (ExecuteViewHierarchy)
|
||||
{
|
||||
|
|
@ -132,4 +132,4 @@ namespace Microsoft.AspNet.Mvc.Razor
|
|||
await bodyWriter.CopyToAsync(context.Writer);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue