Hi Jeremy, admittedly they're rare, but valid cases do exist.
If you're able to, using InstancePerHttpRequest() or a similar specific sharing model (rather than IPLS(), which is very flexible) will turn up these kinds of bugs. If a singleton references an IPHR() component, Autofac will throw an (almost informative) exception.
Cheers,
Nick
I have chased down bugs a few times which have resulted from component registered as SingleInstance that has a dependency registered as InstancePerLifetimeScope. The solution, of course, was to change the outer component's registration to InstancePerLifetimeScope as well. However I was wondering whether it would be reasonable for the container to refuse to inject a dependency whose lifetime scope if less than the component being injected? I can't think of a scenario where I'd want this to succeed.