Is there any block type, that can help with choosing Load block to post URLs to instead my hand-made cycle? For example it will post URLs to first Load clock with .InputCount <=2.
What you can do is to have a single BufferBlock
that is linked to all the load blocks. You would then set BoundedCapacity
of the load blocks to something like 3 (1 item being processed + 2 in the input and output queues). With this setup, items will wait in the BufferBlock
until space becomes available in one of the load blocks.
is there a way to dynamically unlink blocks from network?
Yes, LinkTo()
returns an IDisposable
which can be used to destroy that link (by calling Dispose()
).