Web API - Action Filters

Been looking at action filters which can be applied as declarative  attributes on a controller or even across the whole app.  This could be used for cross cutting concerns such as logging and auditing.

[ServiceFilter(typeof(MyLogger))]

Where MyLogger need to implement

IAsyncActionFilter

and have been registered as a service in StartUp


Comments

Popular posts from this blog

Understanding the technologies - Angular 8 and ASP.NET Web API Core 3

Bits and bobs