TortugaResearch / Tortuga.Chain

A fluent ORM for .NET
Other
335 stars 22 forks source link

TPL Dataflow Support #281

Open Grauenwolf opened 5 years ago

Grauenwolf commented 5 years ago

...ToDataflow<T>( ITargetBlock<TInput> targetBlock )

Uses the same basic idea as .ToCollection<T>, but with a TPL Dataflow block as the target instead of a collection.

https://docs.microsoft.com/en-us/dotnet/api/system.threading.tasks.dataflow.dataflowblock.post?view=netcore-2.2

Grauenwolf commented 5 years ago

Need an option do deal with rejected messages (Post returns false). By default we should just throw an exception.