Visualize dataflow elements
If I dump an instance of ActionBlock, then I can see the number being handled in the "DataFlow" tab of the output window inside the boxes representing either the task being performed or the queue of the actionblock.
However, the visualizer doesn't seem to be able to handle classes. If I try to dump an instance of ActionBlock, then there is no text inside the boxes at all. The state being passed from one block to the next representing a piece of work will often be a custom class. Is there any way that I can add visualizations? It would even be helpful if just "ToString()" overrides worked.
However, the visualizer doesn't seem to be able to handle classes. If I try to dump an instance of ActionBlock, then there is no text inside the boxes at all. The state being passed from one block to the next representing a piece of work will often be a custom class. Is there any way that I can add visualizations? It would even be helpful if just "ToString()" overrides worked.
Comments
The input queue elements are now rendered with the ToString() output.
Is there some other trick to get the Items that are being processed rendered like that, too? If some item is blocking a particular piece of the flow, then I would like to know which item that is. http://share.linqpad.net/jkgkr2.linq
This is a crude rewrite of your example. Notice that you cannot "expand" the items currently being processed inside the transform block (items in red).