How to use the Autofac container as an Abstract Factory?
问题 I would like to modify my current LetterFactory implementation and remove the call to Activator.CreateInstance with a call to the container to resolve the current Letter fully initialized with constructor injection. I have read the docs here and here, and even this SO Post while penning this post, but nothing seems to click. Notes: 1) IDocumentServicesCore is an Aggregate. 2) All Letters are decorated with the LetterTypeAttribute (hundreds of them) 3) This LetterFactory itself is registered