container icon indicating copy to clipboard operation
container copied to clipboard

Question: Dependency Graph

Open romerod opened this issue 5 years ago • 4 comments

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?

romerod avatar Dec 12 '19 08:12 romerod

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.

ENikS avatar Apr 22 '20 19:04 ENikS

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.

romerod avatar Apr 22 '20 20:04 romerod

Well, I would need a more formal requirements than to understand it all.

ENikS avatar Apr 22 '20 20:04 ENikS

This functionality will be available with Open Telemetry in Unity v6

ENikS avatar Sep 29 '20 17:09 ENikS