-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE]: Enhance documentation (#29)
* Documentation updates * Bump test versions --------- Co-authored-by: Brenton Farmer <[email protected]>
- Loading branch information
1 parent
21f29dd
commit cd4f7c8
Showing
13 changed files
with
340 additions
and
350 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
layout: default | ||
title: Child Pipelines | ||
nav_order: 5 | ||
--- | ||
|
||
# Child Piplelines | ||
|
||
The `PipelineFactory` library allows you to use pipelines together. Since pipelines are just functions, they can be used | ||
as input to other pipelines. This allows you to create complex data processing flows by reusing and chaining together | ||
multiple pipelines. | ||
|
||
Here's an example of how to use pipelines together: | ||
|
||
|
||
```csharp | ||
var pipeline2 = PipelineFactory | ||
.Start<string>() | ||
.Pipe( ( ctx, arg ) => $"{arg} again!" ) | ||
.Build(); | ||
|
||
var pipeline1 = PipelineFactory | ||
.Start<string>() | ||
.Pipe( ( ctx, arg ) => $"hello {arg}" ) | ||
.PipeAsync( pipeline2 ) | ||
.Build(); | ||
|
||
var result = await pipeline1( new PipelineContext(), "you" ); | ||
|
||
Assert.AreEqual( "hello you again!", result ); | ||
``` | ||
|
This file was deleted.
Oops, something went wrong.
This file contains 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
File renamed without changes.
This file contains 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
This file contains 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
Oops, something went wrong.