C# implementation of a generic pipeline.