docs: EtlPipeline Create()/DisposingOwned docs + Example9 - #286
Merged
Conversation
- Fix stale getting-started/introduction: EtlPipeline.From(...) is now EtlPipeline.Create().From(...) (From is an instance extension), and the removed EtlPipeline.Source sentinel is replaced with the extension-method description. - Document IEtlPipelineSink.DisposingOwned for factory-owned resource cleanup. - Add Example9-DisposingOwned (net4.8 + net8.0): a pipeline whose sink writes to a caller-opened file, with DisposingOwned closing it after RunAsync. Verified running on both TFMs. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This was referenced Jul 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Brings the
EtlPipelinedocumentation and examples in line with the shipped 0.16.0 API, before release.Docs fixes (were wrong)
getting-started.md/introduction.md: everyEtlPipeline.From(...)→EtlPipeline.Create().From(...)—Fromis now an instance extension method, so the old static-style call no longer compiles.EtlPipeline.Sourcesentinel references with the actual pattern: source factories are extension methods on theEtlPipelineinstance (EtlPipeline.Create().CsvExtractor<Order>(...)).DisposingOwnedsubsection documentingIEtlPipelineSink.DisposingOwned(...)for factory-owned resource cleanup, with a code sample.New example
Example9-DisposingOwned(net4.8 + net8.0): a pipeline whose sink writes to a caller-opened file, terminated with.DisposingOwned(stream)so the file is closed afterRunAsync. The program re-reads the file as proof the stream was disposed.Test plan
Example9builds and runs on net8.0 and net4.8 (verified — output writes + re-reads the file, proving disposal; net4.8 exercises the syncIDisposablepath).EtlPipeline.From(/.Sourcereferences.Targets vNext so it ships in 0.16.0.
🤖 Generated with Claude Code