Example #1
0
        public void OnDependendencyWalkEnd(long walkIndex)
        {
            var visualisation = new DotVisualisation(graphSnapshot);

            onWalkComplete(visualisation.Generate("Transition" + walkIndex, prop =>
            {
                NodeDetails nodeDetails;
                if (this.nodesInPath.TryGetValue(prop.Id, out nodeDetails))
                {
                    switch (nodeDetails.Result)
                    {
                    case ReevaluationResult.NoChange:
                        prop.Color = "khaki1";
                        break;

                    case ReevaluationResult.Error:
                        prop.Color = "firebrick1";
                        break;

                    case ReevaluationResult.Changed:
                        prop.Color = "palegreen";
                        break;

                    default:
                        throw new ArgumentOutOfRangeException();
                    }
                    prop.Label = "[" + nodeDetails.Index + "] " + prop.Label;
                }
                else
                {
                    prop.Color = "gray";
                }
                return(prop);
            }, this.indent, visualisationOptions));
        }
 public void OnDependendencyWalkEnd(long walkIndex)
 {
     var visualisation = new DotVisualisation(graphSnapshot);
     onWalkComplete(visualisation.Generate("Transition" + walkIndex, prop =>
         {
             NodeDetails nodeDetails;
             if (this.nodesInPath.TryGetValue(prop.Id, out nodeDetails))
             {
                 switch (nodeDetails.Result)
                 {
                     case ReevaluationResult.NoChange:
                         prop.Color = "khaki1";
                         break;
                     case ReevaluationResult.Error:
                         prop.Color = "firebrick1";
                         break;
                     case ReevaluationResult.Changed:
                         prop.Color = "palegreen";
                         break;
                     default:
                         throw new ArgumentOutOfRangeException();
                 }
                 prop.Label = "[" + nodeDetails.Index + "] " + prop.Label;
             }
             else
             {
                 prop.Color = "gray";
             }
             return prop;
         }, this.indent, visualisationOptions));
 }
 public static string ToDotFormat(this DependencyEngine dependencyEngine, 
     string title = null,
     Func<VertexVisualProperties, VertexVisualProperties> overrideVisualProperties = null,
     VisualisationOptions options = null)
 {
     var graphSnapshot = dependencyEngine.GetGraphSnapshot();
     var visualsaition = new DotVisualisation(graphSnapshot);
     return visualsaition.Generate(title, overrideVisualProperties ?? (v => v), true, options ?? new VisualisationOptions());
 }
Example #4
0
        public static string ToDotFormat(this DependencyEngine dependencyEngine,
                                         string title = null,
                                         Func <VertexVisualProperties, VertexVisualProperties> overrideVisualProperties = null,
                                         VisualisationOptions options = null)
        {
            var graphSnapshot = dependencyEngine.GetGraphSnapshot();
            var visualsaition = new DotVisualisation(graphSnapshot);

            return(visualsaition.Generate(title, overrideVisualProperties ?? (v => v), true, options ?? new VisualisationOptions()));
        }