How to inject two instances of same object using Autofac?
I'm using Autofac constructor injection. I need to figure out how to inject a single object instance into more than one constructor argument, without needing to explicitly resolve each argument during the container setup phase. I have a complex scenario which would be simplified by this behavior; the following example is just a simplified scenario so I can demonstrate the behavior I'm looking for. Example: Say I have these two interfaces, IOpenable and ICloseable: public interface IOpenable { void Open(); } public interface ICloseable { void Close(); } And I have this Door class which