This is sort of a broad question, but one I am curious about.
What are some examples of uses for MVC Global filters? I.E.
public static void RegisterGlobalFilters(GlobalFilterCollection filters)
{
filters.Add(new HandleErrorAttribute());
filters.Add(new CustomFilterAttribute());
}
I have seen many examples of stopwatches which while perfectly legitimate, lacks much real use.
I have also seen a few logging examples which is good, but I was wondering if anyone has any other thoughts on what to implement them for, or places you have used them.