// These three instances can be injected via the IGetStartProcessQuery, IGetProcessStartInfoQuery and IRegisterLayoutPluginCommand interfaces

var getStartProcessQuery = new GetStartProcessQuery();
var getProcessStartInfoQuery = new GetProcessStartInfoQuery();
var registerLayoutPluginCommand = new RegisterLayoutPluginCommand();

// GraphVizWrapper can be injected via the IGraphVizWrapper interface

var wrapper = new GraphVizWrapper(getStartProcessQuery, getProcessStartInfoQuery, registerLayoutPluginCommand);

byte[] output = wrapper.GenerateGraph("digraph{a -> b; b -> c; c -> a;}", Enums.GraphReturnType.Png);

Last edited Sep 21, 2011 at 5:04 PM by JamieDixonWeb, version 10


No comments yet.