Autofac circular dependencies

Topics: Troubleshooting
Apr 22, 2011 at 12:22 PM

I just had a situation where Autofac threw an error "Circular component dependency detected"

What I'm trying to do is; from my service class, I'm injecting a list of components. But one of those components needs a reference back to the service class to perform further processing. So I injected the service class in the constructor and it gave me this error.

What is the recommended way to get around this in Autofac?

Apr 22, 2011 at 12:24 PM

Ah, found this discussion:

Must remember to search before asking ;)