Issue #2757 - Adding Order to exception filters so that they are executed in the same order irrespective of the platform.
This commit is contained in:
parent
4fbaea2463
commit
e8043f92e5
|
|
@ -506,9 +506,7 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
|
|||
|
||||
// Action has two Exception filters.
|
||||
// Verifies that the second Exception Filter was not executed.
|
||||
[ConditionalTheory]
|
||||
// https://github.com/aspnet/Mvc/issues/2757
|
||||
[FrameworkSkipCondition(RuntimeFrameworks.Mono)]
|
||||
[Fact]
|
||||
public async Task ExceptionFilterShortCircuitsAnotherExceptionFilter()
|
||||
{
|
||||
// Arrange
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ namespace FiltersWebSite.Controllers
|
|||
}
|
||||
|
||||
[HandleInvalidOperationExceptionFilter]
|
||||
[ShortCircuitExceptionFilter]
|
||||
[ShortCircuitExceptionFilter(Order=12)]
|
||||
public IActionResult ThrowRandomExcpetion()
|
||||
{
|
||||
throw new InvalidOperationException("Controller threw.");
|
||||
|
|
|
|||
Loading…
Reference in New Issue