Skip to content

Visualize dependency tree configured in SimpleInjector DI container

License

Notifications You must be signed in to change notification settings

mikhailshilkov/SimpleInjector.Visualization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimpleInjector.Visualization

Visualize dependency tree configured in SimpleInjector DI container.

Usage example

// 1. Initialize the DI container and do the registrations
Container container = ...; 

// 2. Pick the root type
Type rootType = typeof(MyRootClass);

// 3. Build the collection of relations
var dependencies = Visualizer.BuildGraph(container, rootType);

// 4. Convert to Graphviz
var graphviz = dependencies.ToGraphViz();

// Copy-paste to a visualization tool (e.g. 
[webgraphviz.com](http://webgraphviz.com))

Result example

Dependency Graph

Read more

Visualizing Dependency Tree from DI Container.

About

Visualize dependency tree configured in SimpleInjector DI container

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages