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:
Sornakumar Sundararajan 2015-08-28 10:52:48 -07:00 committed by sornaks
parent 4fbaea2463
commit e8043f92e5
2 changed files with 2 additions and 4 deletions

View File

@ -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

View File

@ -77,7 +77,7 @@ namespace FiltersWebSite.Controllers
}
[HandleInvalidOperationExceptionFilter]
[ShortCircuitExceptionFilter]
[ShortCircuitExceptionFilter(Order=12)]
public IActionResult ThrowRandomExcpetion()
{
throw new InvalidOperationException("Controller threw.");