Flatwhite is an AOP library with MVC and WebAPI ActionFilter style using Castle dynamic proxy.
You can create MethodFilterAttribute to add custom logic to any methods as soon as it is interceptable by Castle Dynamic Proxy. Flatwhite has 1 built-in OutputCacheFilter to cache method result which can auto refresh stale content.
You can use Flatwhite simply for caching or extending behavior of your methods such as profiling, logging by implement MethodFilterAttribute similar to MVC's ActionFilterAttribute. Flatwhite.Autofac is a Autofac support package for Flatwhite core.
DependenciesThis package has 3 dependencies.
dotnet add package Flatwhite.Autofac
paket add Flatwhite.Autofac