'Inject two objects of same type using autofac for generic consumer

I have been trying to achieve the same as in this similar question but my consumer is generic and there is no KeyFilterAttribute on the RegisterGeneric<> type.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source