Search code examples
dependency-injectioninversion-of-controlautofac

Autofac - How can I tell if service was registered with interceptor?


I would like to throw an exception if service was registered with interceptor. Is there a way to query the container about the registered interceptors?

Thank you


Solution

  • No, there is no built in query syntax to determine which services were registered with interceptors.