Autofac - global callback when object resolved

Viewed 2329

How can I register global callback on Autofac container which is triggered whenever any object is resolved?

I want to use reflection and check if an object has a method called Initialize() and call it if it does. I want it to be duck typed i.e. no interfaces are required.

Thanks!

1 Answers
Related