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

Popular posts from this blog

java - HTTP Status 500 - An exception occurred processing JSP page /second.jsp at line 15 -

SQL Server - MyCTE query based on 24 hour period (next day) -

php - Using str_replace to translate a MySQL Table in html -