Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
ProceduralDataflow.Tests Working on the second overload of ProcessEnumerable. Related to #2 Aug 30, 2019
.gitignore Initial commit Aug 29, 2017
LICENSE.txt Working on nuspec file and license file. Related to #2 Aug 30, 2019
ProceduralDataflow.sln Making the library .NET Standard 2.0 Jun 3, 2019 Update Jan 20, 2018


This library uses the custom awaiter feature in C# 5 and the task-like feature in C# 7 to enable C# developers to write dataflows in a procedural way.

The dataflow pattern is like the producer-consumer pattern. However, in the dataflow pattern, the flow is not linear. It can contain branches and loops.

The .NET framework already contains APIs to help developers create dataflows. For example, you can use the Dataflow API. This API is great. However, the way we describe the dataflow in such API is declarative. That is, we create blocks and link them together. An issue with this approach is that the flow is not easily readable. It would be much easier if we can write the dataflow like this:

var result1 = RunBlock1(input);

var result2 = RunBlock2(result1);

if(result2.SomeProperty == "some value")
    return RunBlock3(result2.Part1);
    return RunBlock4(result2.Part2);

And have the framework know how to connect the blocks together.

This is exactly what ProceduralDataflow does.

I have published a pre-release version at Nuget. You can find it here:

If you try to find it from within visual studio, you need to check the box to include pre-released packages.

I have written an article about the dataflow pattern in .NET and the ProceduralDataflow library. You can read it here:

You can’t perform that action at this time.