Autofac.Extras.DynamicProxy
Autofac.Extras.DynamicProxy copied to clipboard
Interceptor and decorator support for Autofac IoC via Castle DynamicProxy
Add support for register service with Interceptor and multiple decorator, apply Interceptor to the outermost decorator,
## Problem Statement Currently, there isn't a way to intercept all registrations and we cannot make a global interceptor like "global logger". Most of the workarounds in stackoverflow are hacky...
## Problem Statement Based on autofac/Autofac#1211 - it may be interesting to have the ability to conditionally enable interception based on a lambda expression. This does somewhat overlap with #29....
Based on [this StackOverflow question](https://stackoverflow.com/questions/53784205/how-to-use-an-interceptor-that-has-parameter-in-its-constructor-for-autofac-inte) it may be interesting to look at allowing the proxy generation options `Selector` influence the choice for interceptors.
This comes from a [StackOverflow question](https://stackoverflow.com/questions/49575478/autofac-generic-type-registration-with-interceptor-and-resolve-it) Using assembly scanning in conjunction with interface interception yields an exception: `The component ... cannot use interface interception as it provides services that are...
## Describe the Bug When using `EnableClassInterceptors()` and registering a class with `WithAttributeFiltering()`, parameters decorated with `KeyFilter` will not have their filter taken into account when trying to intercept the...