SmartPipe.Extensions
2.2.0
See the version list below for details.
dotnet add package SmartPipe.Extensions --version 2.2.0
NuGet\Install-Package SmartPipe.Extensions -Version 2.2.0
<PackageReference Include="SmartPipe.Extensions" Version="2.2.0" />
<PackageVersion Include="SmartPipe.Extensions" Version="2.2.0" />
<PackageReference Include="SmartPipe.Extensions" />
paket add SmartPipe.Extensions --version 2.2.0
#r "nuget: SmartPipe.Extensions, 2.2.0"
#:package SmartPipe.Extensions@2.2.0
#addin nuget:?package=SmartPipe.Extensions&version=2.2.0
#tool nuget:?package=SmartPipe.Extensions&version=2.2.0
SmartPipe.Extensions
New applications should reference only the specific SmartPipe.Extensions.*
packages they use. SmartPipe.Extensions is a compatibility bundle: it installs
Core and 16 runtime integration leaves, including HealthChecks and OpenTelemetry.
Its dependency closure contains 18 SmartPipe IDs including the facade itself.
Optional SmartPipe.Extensions.PostgreSql and test-only SmartPipe.Testing are
published separately and are excluded from this bundle.
The facade DLL preserves 23 forwarded and 13 frozen legacy public identities from 2.1.2. Six HTTP/Polly identities were intentionally removed and require migration and recompilation. See the 2.1.2 → 2.2.0 migration guide and compatibility matrix.
Selectors (Data Sources)
| Selector | Library | Description |
|---|---|---|
EfCoreSelector<T> |
Entity Framework Core (forwarded to SmartPipe.Extensions.EntityFrameworkCore) |
Stream entities from database |
DapperSelector<T> |
Dapper | High-performance SQL queries |
CsvFileSource<T> |
CsvHelper | Read CSV files |
JsonFileSource<T> |
SmartPipe.Extensions.Json / System.Text.Json | Read JSON arrays and NDJSON |
DeadLetterSource<T> |
SmartPipe.Extensions.Json / System.Text.Json | Read persisted failed-item records |
EfCoreSelector<T> (forwarded from SmartPipe.Extensions.EntityFrameworkCore) uses no-tracking queries by default for read-only pipeline
source scenarios. Call .WithTracking() when returned entities must remain
tracked by the supplied DbContext.
DapperSelector<T> uses asynchronous open and read operations when the supplied
connection is a DbConnection. Non-DbConnection IDbConnection
implementations remain a synchronous compatibility fallback. Externally
supplied connections are left open by default; use the explicit DbConnection
ownership overload with leaveOpen: false when the selector should dispose the
connection.
Transforms
| Transform | Library | Description |
|---|---|---|
JsonTransform<TIn,TOut> |
SmartPipe.Extensions.Json / System.Text.Json | JSON serialization |
CsvTransform<TIn,TOut> |
CsvHelper | CSV parsing |
MapsterTransform<TIn,TOut> |
Mapster | Runtime object mapping |
CompressionTransform |
System.IO.Compression | Brotli/GZip compression |
FilterTransform<T> |
— | Predicate-based filtering with And/Or/Not |
ValidationTransform<T> |
DataAnnotations | Data validation with custom rules |
ConditionalTransform<T> |
— | Apply transform only when condition met |
CompositeTransform<T> |
— | Chain multiple transforms into one |
Sinks (Data Destinations)
| Sink | Library | Description |
|---|---|---|
LoggerSink<T> |
ILogger | Structured logging |
DeadLetterSink<T> |
SmartPipe.Extensions.Json / System.Text.Json | Persist failed items to JSON |
DbSink<T> |
Dapper | Insert into any database |
CsvFileSink<T> |
CsvHelper | Write CSV files |
JsonFileSink<T> |
SmartPipe.Extensions.Json / System.Text.Json | Write JSON files |
HTTP Integrations
HttpSelector<T>, HttpClientFactorySelector<T>, HttpSink<T>,
HttpClientFactorySink<T>, and HttpSelectorStreamingMode were removed in 2.2.0 by
ADR-0004, with no
wrappers or type forwarders. This bundle references
SmartPipe.Extensions.Http (streaming transport) and
SmartPipe.Extensions.Http.Json (bounded source-generated JSON codecs); use
HttpPipelineComponents, FromHttp/ToHttp, and the HTTP JSON readers and
request content from those packages, then recompile.
The HTTP adapters never retry. Avoid configuring retry in several of the
following for the same operation unless that layered retry budget is
intentional: SmartPipe stage policies, HttpClient handlers, and the
SmartPipe.Extensions.Polly decorator.
Polly
PollyResilienceTransform<T> was removed in 2.2.0 by
ADR-0004, with no wrapper
or type forwarder: it returned success without running an inner transform. This
bundle references SmartPipe.Extensions.Polly; use PollyPipelineComponents.Decorate
or PollyTransformDecorator<TInput,TOutput> with a typed ResiliencePipeline<StageResult<TOutput>>
and explicit inner ownership, then recompile.
Health Checks
| Component | Description |
|---|---|
AddLiveness() |
Canonical key-based liveness, from SmartPipe.Extensions.HealthChecks |
AddReadiness() |
Canonical key-based readiness, from SmartPipe.Extensions.HealthChecks |
The legacy SmartPipeHealthCheckOptions and SmartPipeRunHealthMonitor<TIn,TOut>
remain facade-owned for compatibility. New code uses canonical registration
and the HealthChecks leaf.
Hosting
| Component | Description |
|---|---|
SmartPipeHostedService<TIn,TOut> |
Frozen legacy Generic Host adapter |
AddSmartPipe<TIn,TOut>() |
Retained legacy definition/factory DI registration |
AddSmartPipeHostedService<TIn,TOut>() |
Retained legacy hosted-service registration |
Canonical keyed registration and orchestration live in the
DependencyInjection and
Hosting leaves. Legacy synchronous
factory Start retains its obsolete diagnostic and immediate-return behavior;
prefer the canonical factory StartAsync for new applications. Do not combine
similarly named legacy and canonical extension methods without choosing the
appropriate namespace/API explicitly.
SmartPipeHostedServiceOptions controls hosted fault behavior and drain
timeout. The default fault behavior is StopApplication; use Rethrow,
MarkUnhealthyAndKeepHostAlive, or Ignore only when that lifecycle policy is
intentional for the host.
Streaming
| Component | Description |
|---|---|
ChannelMerge |
Merge two ChannelReader streams |
Use ChannelMerge.Merge(first, second, options, cancellationToken) for bounded
or backpressure-sensitive merges that need cancellation to flow into source
reads and output writes. The compatibility overload without a cancellation
token remains available.
Installation
dotnet package add SmartPipe.Extensions
For narrow SP220-07 integrations, install SmartPipe.Extensions.Channels,
SmartPipe.Extensions.Transforms, SmartPipe.Extensions.Logging, or
SmartPipe.Extensions.DataAnnotations directly. The broad package forwards the
existing public types and pulls these leaves only as a compatibility facade.
For JSON-only integrations, prefer:
dotnet package add SmartPipe.Extensions.Json
JSON Package Migration
JSON file, transform, and JSON dead-letter implementations moved to
SmartPipe.Extensions.Json in version 2.1.2. Public namespaces did not change.
SmartPipe.Extensions 2.1.2 retains type forwarders and a transitive package
dependency, so existing 2.x source and binary consumers remain compatible. New
applications should reference SmartPipe.Extensions.Json directly. The bridge
remains part of the SmartPipe 2.x compatibility contract; any future removal
requires a separately documented major-version compatibility decision.
Requirements
- .NET 10.0+
- SmartPipe.Core (included as a package dependency)
- This package intentionally includes integration dependencies for the features below.
- Individual features pull their own dependencies:
- HTTP transport and codecs →
SmartPipe.Extensions.Http/SmartPipe.Extensions.Http.Json EfCoreSelector→ Entity Framework Core (forwarded; the leaf owns the implementation)DapperSelector/DbSink→ DapperMapsterTransform→ Mapster (forwarded; theSmartPipe.Extensions.Mapsterleaf owns the implementation and the new composition API)CsvFileSource/CsvFileSink/CsvTransform→ CsvHelper- Polly decorator →
SmartPipe.Extensions.Polly(Polly.Coreonly) SmartPipeHostedService/SmartPipeHealthCheck→ Microsoft.Extensions.Hosting / HealthChecks- Other components use platform APIs or dependencies already carried by this package.
- HTTP transport and codecs →
Trimming and NativeAOT
The broad bundle has no blanket trimming or NativeAOT guarantee. Choose specific leaves and follow their verified consumer contracts. Forwarding compatibility does not make the transitive runtime integration set AOT-safe.
MapsterTransform<TIn,TOut> uses Mapster runtime mapping metadata and runtime
expression compilation. It is supported for normal runtime consumers, but is not
trim- or NativeAOT-safe. For trimmed or NativeAOT applications, prefer a
hand-written mapper, a source-generated mapper, or PipelineTransformer.FromFunc.
The type is forwarded from SmartPipe.Extensions.Mapster, which also exposes
MapsterPipelineComponents.Transform<TIn,TOut> and the MapWithMapster builder extensions for new code.
License
MIT License — see LICENSE for details.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. |
-
net10.0
- CsvHelper (>= 33.1.0)
- Dapper (>= 2.1.89)
- Mapster (>= 10.0.13)
- Microsoft.EntityFrameworkCore (>= 10.0.12)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.12)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.12)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.12)
- Microsoft.Extensions.Options (>= 10.0.12)
- SmartPipe.Core (>= 2.2.0)
- SmartPipe.Extensions.Channels (>= 2.2.0)
- SmartPipe.Extensions.Csv (>= 2.2.0)
- SmartPipe.Extensions.Dapper (>= 2.2.0)
- SmartPipe.Extensions.DataAnnotations (>= 2.2.0)
- SmartPipe.Extensions.DependencyInjection (>= 2.2.0)
- SmartPipe.Extensions.EntityFrameworkCore (>= 2.2.0)
- SmartPipe.Extensions.HealthChecks (>= 2.2.0)
- SmartPipe.Extensions.Hosting (>= 2.2.0)
- SmartPipe.Extensions.Http (>= 2.2.0)
- SmartPipe.Extensions.Http.Json (>= 2.2.0)
- SmartPipe.Extensions.Json (>= 2.2.0)
- SmartPipe.Extensions.Logging (>= 2.2.0)
- SmartPipe.Extensions.Mapster (>= 2.2.0)
- SmartPipe.Extensions.OpenTelemetry (>= 2.2.0)
- SmartPipe.Extensions.Polly (>= 2.2.0)
- SmartPipe.Extensions.Transforms (>= 2.2.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
2.2.0 completes the runtime integration bundle with HealthChecks and OpenTelemetry, preserves 23 forwarded and 13 legacy facade identities, and removes five HTTP identities and PollyResilienceTransform under ADR-0004. Removed API callers must migrate to the HTTP/HTTP.Json or Polly leaves and recompile. PostgreSql and Testing remain separate packages.