Autofac pick nested implementation based on parent dependency
问题 Given the example dependency tree below I would like to select the bottom level Config instance based on the top level dependency being resolved from the container e.g. TopLevelMessageConsumer would resolve the same IMessageService & IMessageQueue implementations as TopLevelMessageDispatcher but each would have their own Config instance. - TopLevelMessageConsumer - IMessageService - IMessageQueue - Config - TopLevelMessageDispatcher - IMessageService - IMessageQueue - Config I know this is