RtFlow.Pipelines.Core 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package RtFlow.Pipelines.Core --version 1.0.0
                    
NuGet\Install-Package RtFlow.Pipelines.Core -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="RtFlow.Pipelines.Core" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="RtFlow.Pipelines.Core" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="RtFlow.Pipelines.Core" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add RtFlow.Pipelines.Core --version 1.0.0
                    
#r "nuget: RtFlow.Pipelines.Core, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package RtFlow.Pipelines.Core@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=RtFlow.Pipelines.Core&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=RtFlow.Pipelines.Core&version=1.0.0
                    
Install as a Cake Tool

RtFlow.Pipelines.Core

NuGet

RtFlow.Pipelines.Core is the foundational package for building high-throughput, resilient data processing pipelines using .NET's TPL Dataflow library. It provides a fluent API for creating complex data processing workflows with enterprise-grade features.

Installation

dotnet add package RtFlow.Pipelines.Core

Key Features

  • 🔗 Fluent API - Build complex data pipelines with an intuitive, chainable syntax
  • 🛡️ Type-safe - Strongly-typed pipeline stages with compile-time checking
  • ⚡ High Performance - Built on TPL Dataflow with back-pressure and bounded capacity control
  • 🚫 Cancellation Support - Graceful pipeline shutdown with comprehensive CancellationToken integration
  • 📦 Batching - Group elements into batches for efficient bulk processing
  • 🔍 Side-effects - Add monitoring, logging, or metrics collection without changing data flow

Quick Start

using RtFlow.Pipelines;

// Create a simple pipeline
var pipeline = PipelineBuilder
    .Create<int>()
    .Transform(x => x * 2)
    .Filter(x => x > 10)
    .ForEach(x => Console.WriteLine($"Processed: {x}"));

// Execute the pipeline
await pipeline.ExecuteAsync(new[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 });

Core Components

  • PipelineBuilder<T> - Fluent builder for creating typed pipelines
  • IPipeline<T> - Core pipeline interface with execution capabilities
  • PipelineHub - Centralized registry for managing named pipelines
  • Transform Operations - Map, filter, batch, and side-effect operations
  • Execution Control - Cancellation, completion tracking, and lifecycle management

Advanced Usage

Batching

var pipeline = PipelineBuilder
    .Create<int>()
    .Batch(batchSize: 10, maxWaitTime: TimeSpan.FromSeconds(5))
    .Transform(batch => ProcessBatch(batch))
    .Build();

Cancellation Support

using var cts = new CancellationTokenSource();

var pipeline = PipelineBuilder
    .Create<string>()
    .Transform(async (item, ct) => await ProcessAsync(item, ct))
    .Build();

await pipeline.ExecuteAsync(data, cts.Token);

Pipeline Hub

// Register a pipeline
PipelineHub.Register("data-processor", myPipeline);

// Retrieve and use later
var pipeline = PipelineHub.Get<DataItem>("data-processor");
await pipeline.ExecuteAsync(items);

Documentation

For complete documentation, examples, and best practices, visit the main project repository.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.9.0 143 6/3/2025
1.0.0 146 5/27/2025

Initial release with fluent pipeline API, cancellation support, and comprehensive testing.