Skip to content

Instantly share code, notes, and snippets.

@wullemsb
Created February 1, 2026 12:43
Show Gist options
  • Select an option

  • Save wullemsb/4f1f000a71c2e0937a09ae8534b0809b to your computer and use it in GitHub Desktop.

Select an option

Save wullemsb/4f1f000a71c2e0937a09ae8534b0809b to your computer and use it in GitHub Desktop.
// Option 1: Always include a catch-all link as shown before
sourceBlock.LinkTo(defaultBlock);
// Option 2: Use NullTarget to discard unmatched messages
sourceBlock.LinkTo(DataflowBlock.NullTarget<Order>());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment