MVFC.DataX.Pipeline 1.2.0

dotnet add package MVFC.DataX.Pipeline --version 1.2.0
                    
NuGet\Install-Package MVFC.DataX.Pipeline -Version 1.2.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="MVFC.DataX.Pipeline" Version="1.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MVFC.DataX.Pipeline" Version="1.2.0" />
                    
Directory.Packages.props
<PackageReference Include="MVFC.DataX.Pipeline" />
                    
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 MVFC.DataX.Pipeline --version 1.2.0
                    
#r "nuget: MVFC.DataX.Pipeline, 1.2.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 MVFC.DataX.Pipeline@1.2.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=MVFC.DataX.Pipeline&version=1.2.0
                    
Install as a Cake Addin
#tool nuget:?package=MVFC.DataX.Pipeline&version=1.2.0
                    
Install as a Cake Tool

MVFC.DataX.Pipeline

🇧🇷 Leia em Português

CI codecov NuGet Downloads License Platform

The core Pipeline execution engine for MVFC.DataX, providing PipelineBuilder for orchestrating data flows, batching, and error handling.

This package is part of the MVFC.DataX suite. For the full documentation and more examples, please check the main repository README.

Installation

dotnet add package MVFC.DataX.Pipeline

Available Classes

Class Description
PipelineBuilder (static) Entry point to create a pipeline via PipelineBuilder.ReadFrom<T>(reader).
PipelineBuilder<TInput> Fluent builder API supporting .TransformWith(), .Skip(), .Take(), .Distinct(), .OrderBy(), .FlatMap(), .Aggregate(), and .Batch().
PipelineBuilder<TInput, TOutput> Advanced builder with .WriteTo(writer), .WithParallelism(int), .WithBatchSize(int), .WithRetry(int, TimeSpan), .WithChannelCapacity(int), .OnError(writer), and .OnCompleted(Action).
DataPipeline<TInput, TOutput> The built orchestrator. Call .RunAsync(ct) to begin processing and retrieve PipelineStatistics.
PipelineOptions Configuration record capturing degrees of parallelism, capacities, timeouts, and batch sizes.

Usage / Example

Simple Pipeline

using MVFC.DataX.Pipeline;

// Instantiate providers/transformers
var reader = new MyDataReader();
var transformer = new MyDataTransformer();
var writer = new MyDataWriter();

var pipeline = PipelineBuilder.ReadFrom(reader)
    .TransformWith(transformer)
    .WriteTo(writer)
    .Build();

var stats = await pipeline.RunAsync(cancellationToken);

Console.WriteLine($"Processed {stats.Succeeded} items successfully in {stats.Elapsed}.");

Advanced Pipeline

This example demonstrates handling failures with a Dead-Letter Queue (DLQ), batching, inline Linq-like operations, and parallelism.

using MVFC.DataX.Pipeline;

var pipeline = PipelineBuilder.ReadFrom(reader)
    // Inline transformations available by default via the PipelineBuilder
    .Skip(100)
    .Distinct()
    
    // Custom transformers
    .TransformWith(transformer)
    
    // Fluent configuration
    .WriteTo(writer)
    .WithBatchSize(500)
    .WithParallelism(4)
    .WithRetry(maxRetries: 3, delay: TimeSpan.FromSeconds(2))
    .WithChannelCapacity(5000)
    
    // Route validation or transformation failures to a DLQ Writer
    .OnError(deadLetterWriter)
    
    // Setup a completion hook
    .OnCompleted(async stats => 
    {
        await notificationService.NotifyAsync($"Pipeline completed. Failed: {stats.Failed}");
    })
    .Build();

await pipeline.RunAsync(cancellationToken);
Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  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 is compatible.  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.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on MVFC.DataX.Pipeline:

Package Downloads
MVFC.DataX.Resilience

MVFC.DataX.Resilience module for MVFC.DataX.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.2.0 111 7/9/2026
1.1.0 109 7/9/2026
1.0.1 100 7/9/2026