我已經建立了使用TPL Dataflow
兩條管道:鏈接多個TransformBlocks單挑BatchBlock TPL
TransformBlock => TransformBlock => BatchBlock => ....
TransformBlock => BatchBlock => TransformBlock => ....
我要完成
/=> Transform Block => TransformBlock => BatchBlock => ....
BatchBlock/
\
\ => Transform Block => BatchBlock => TransformBlock => ....
但只有第一個管道被執行。
我的代碼
batchMediaBlock.LinkTo(pipelineA.FirstBlock, new DataflowLinkOptions {PropagateCompletion = true});
batchMediaBlock.LinkTo(pipelineB.FirstBlock, new DataflowLinkOptions {PropagateCompletion = true});
我怎樣才能做到這一點?