Runtime Composition Visualization

RapidMEF diagnostic tools is available via NuGet. More information on how to install NuGet is available here

Nuget1.png

Nuget2.png


After adding the reference via the NuGet Library Package Manager, the API to create and show the composition container visualizer is straightforward.

VisualizerAPIUsage1.png

The CompositionContainerVisualizer class can be used on Windows Forms applications, WPF applications and Visual Studio extensions. It has different constructors that accept an assembly, a list of assemblies, a ComposablePartCatalog or an existing CompositionContainer.

Given the following context:

VisualizerContext.png

The visualization is the following:

VisualizerResult.png


The Composition Container Visualizer reuses the DGML control that ships with Visual Studio 2010. Therefore the control's usage is the same:

VisualizerUsage.png

Last edited Mar 9, 2011 at 12:25 AM by PabloGaliano, version 3

Comments

jradxl Apr 16, 2011 at 10:46 PM 
I have VS2010 Professional, so I don't have any way to view a DGML document.