container
container copied to clipboard
Question: Dependency Graph
Is there a was to get the dependency graph for a registration or an instance?
Something like https://simpleinjector.org/ReferenceLibrary/html/M_SimpleInjector_InstanceProducer_GetRelationships.htm?
This is not possible at the moment but I like the idea. It could be a part of Diagnostic
extension.
I am open to suggestions on how it should be implemented.
It's not only about diagnostics. The use case is:
I have a list of services which need to be initialized. There are dependencies between these services and they should be initialized in order that dependent services are initialized after their dependencies.
Well, I would need a more formal requirements than to understand it all.
This functionality will be available with Open Telemetry in Unity v6