如何让Concurrency Visualizer显示数据流阻止名称而不是隐藏数字,例如下面的block 47
?
这是MSDN link to DataflowBlockOptions.NameFormat Property
这是我的TransformBlock的声明:
var myTransformBlock = new TransformBlock<int, double>(number => (double)number,
new ExecutionDataflowBlockOptions { NameFormat = "My Transform" });
以下是我在活动中看到的消息:
ProcessingInputMessages task launched from block 36 with 1 message(s) pending.
当然,我更愿意看到:
ProcessingInputMessages task launched from Reader TransformBlock with 1 message(s) pending.
以下是Concurrency Visualizer中的内容:
详细信息: 这是Windows Server 2008 R2 SP1上的桌面应用程序,Visual Studio 2013更新5,TPL Dataflow 4.5.25,发布模式,面向.NET Framework 4.5.1