It should be something very natural to have, I was wondering if there is a ready implementation of Prioritized BufferBlock from TPL DataFlow library?
This library might help: https://www.nuget.org/packages/CounterpointCollective.ComposableDataflowBlocks/. It includes a PriorityBufferBlock, Delivers highest-priority messages first, dynamically reordering when new higher-priority items arrive.
Disclaimer: I am one of the maintainers of this project.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With