Skip to content

Commit 8fdc5ad

Browse files
Update filters.md (#35627)
* Update filters.md Remove a problematic image. * Update aspnetcore/mvc/controllers/filters.md Co-authored-by: Wade Pickett <[email protected]> * Update aspnetcore/mvc/controllers/filters.md Co-authored-by: Wade Pickett <[email protected]> --------- Co-authored-by: Wade Pickett <[email protected]>
1 parent 4b60f28 commit 8fdc5ad

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

aspnetcore/mvc/controllers/filters.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,18 +65,18 @@ Each filter type is executed at a different stage in the filter pipeline:
6565
* Are **not** supported in Razor Pages.
6666
* Can be invoked on both actions and route handler-based endpoints.
6767

68-
* [Exception filters](#exception-filters) apply global policies to unhandled exceptions that occur before the response body has been written to.
68+
* [Exception filters](#exception-filters):
69+
* Apply global policies to unhandled exceptions that occur before the response body has been written to.
70+
* Run after model binding and action filters, but before the action result is executed.
71+
* Run only if an unhandled exception occurs during action execution or action result execution.
72+
* Do not run for exceptions thrown during middleware execution, routing, or model binding.
6973

7074
* [Result filters](#result-filters):
7175

7276
* Run immediately before and after the execution of action results.
7377
* Run only when the action method executes successfully.
7478
* Are useful for logic that must surround view or formatter execution.
7579

76-
The following diagram shows how filter types interact in the filter pipeline:
77-
78-
:::image source="~/mvc/controllers/filters/_static/filter-pipeline-2.png" alt-text="The request is processed through Authorization Filters, Resource Filters, Model Binding, Action Filters, Action Execution and Action Result Conversion, Exception Filters, Result Filters, and Result Execution. On the way out, the request is only processed by Result Filters and Resource Filters before becoming a response sent to the client.":::
79-
8080
Razor Pages also support [Razor Page filters](xref:razor-pages/filter), which run before and after a Razor Page handler.
8181

8282
## Implementation
@@ -543,4 +543,4 @@ When passing an *instance* of a filter into `Add`, instead of its `Type`, the fi
543543
* <xref:razor-pages/filter>
544544

545545
:::moniker-end
546-
[!INCLUDE[](~/mvc/controllers/filters/includes/filters7.md)]
546+
[!INCLUDE[](~/mvc/controllers/filters/includes/filters7.md)]

0 commit comments

Comments
 (0)