c# - Is there a way to detect breaks in a TPL Dataflow graph -
i create complex tpl dataflow graphs, , happens there break in graph somewhere. symptom of app hangs, because of dataflow blocks waiting messages.
is there way detect when happens, other manually tracing graph? can see there linkedtargets property available in debug view of dataflowblock - when have break set 0. since not public can't write automatically check this.
you can use reflection. tpl dataflow debugger visualizer uses reflection retrieve linked targets in dataflowblockdebuginforetriever.getinnerdataflowdebuggerinfo , create list of nodes each block. creates graph structure using quickgraph.
this structure can visualized visualizer does, or can search partitions in code. quickgraph implements several algorithms may of use.
a simpler solution though, search non-actionblock blocks 0 linked targets
Comments
Post a Comment