Skip to content
Visualize dependency tree configured in SimpleInjector DI container
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Source
Tests
.gitignore
LICENSE
README.md
SimpleInjector.Visualization.sln

README.md

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.

You can’t perform that action at this time.