Implementing Action Filters in ASP.NET Core

Learn how to implement action filters in ASP.NET Core to customize request handling and enhance your web applications. 🎯

Implementing Action Filters in ASP.NET Core
Code Maze
38.3K views • May 27, 2020
Implementing Action Filters in ASP.NET Core

About this video

►► Check out our courses: https://bit.ly/cdmz-courses
►► Support us on Patreon and get the source code: https://www.patreon.com/CodeMaze

In this video, we are going to learn how to use Action Filters in ASP.NET Core applications to create readable and maintainable actions.

LINKS MENTIONED IN THE VIDEO:
To visit the whole article and download the source code visit:
►► https://code-maze.com/action-filters-aspnetcore/
To watch the Global Error Handling video, visit:
►► https://www.youtube.com/watch?v=ctzn56OaXfQ
To visit our site:
►► https://code-maze.com/

FOLLOW US ON SOCIAL MEDIA!
►► https://www.linkedin.com/in/marinko-spasojevic/
►► https://twitter.com/CodeMazeBlog
►► https://www.facebook.com/CodeMazeBlog

VIDEO SUMMARY:
Filters in .NET offer a great way to hook into the MVC action invocation pipeline. Therefore, we can use filters to extract code that can be reused and make our actions cleaner and maintainable. Some filters are already provided by ASP.NET Core like the authorization filter, and there are the custom ones that we can create ourselves.

There are different filter types:

Authorization filters – They run first to determine whether a user is authorized for the current request
Resource filters – They run right after the authorization filters and are very useful for caching and performance
Action filters – They run right before and after the action method execution
Exception filters – They are used to handle exceptions before the response body is populated
Result filters – They run before and after the execution of the action methods result.
In this video, we are going to talk about Action filters and how to use them to create cleaner and reusable code in our Web API.

Video Information

Views

38.3K

Likes

557

Duration

10:27

Published

May 27, 2020

User Reviews

4.6
(7)
Rate:

Related Trending Topics

LIVE TRENDS

Related trending topics. Click any trend to explore more videos.