Missing virtual keywords on ExceptionFilterAttribute's OnException & OnExceptionAsync methods #552.
This commit is contained in:
parent
7388dece9f
commit
ec8d09dd65
|
|
@ -12,13 +12,13 @@ namespace Microsoft.AspNet.Mvc
|
|||
public int Order { get; set; }
|
||||
|
||||
#pragma warning disable 1998
|
||||
public async Task OnExceptionAsync([NotNull] ExceptionContext context)
|
||||
public virtual async Task OnExceptionAsync([NotNull] ExceptionContext context)
|
||||
{
|
||||
OnException(context);
|
||||
}
|
||||
#pragma warning restore 1998
|
||||
|
||||
public void OnException([NotNull] ExceptionContext context)
|
||||
public virtual void OnException([NotNull] ExceptionContext context)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue