Contents tagged with Nuget
-
Using Autofac DynamicProxy2 Interceptors with MVC3–Part 2
Continuing from the previous post, the interceptor is now ready to be registered and consumed.
-
Using Autofac DynamicProxy2 Interceptors with MVC3–Part 1
Autofac is an IoC container and using DynamicProxy we can intercept method calls to perform custom logic. What this means is that, you can actually add ‘hooks’ to methods in your code so that when these methods are called, you automatically invoke an ‘interceptor’ method that wraps the call to your method.