Hi,
I want to assert that my registrations are valid, i.e no dependency is missing and there are no circular dependencies.
I'd like to do that in my application (and not in a unit-test) so I'd be able to fail-fast if the configuration is invalid.
I also want to accomplish that without resolving (and instantiating) all the components - only by scanning the dependency graph.
Any idea on how I can do that?
The motivation is the trial-and-error nature of configuring complex applications. I'd prefer to get a fail-fast behavior in case of a badly configured container.
BTW - my inspiration came from AutoMapper's AssertConfigurationIsValid() method.