FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [View Raw Code]   [Original HTTPS Page]

workflow-core/src/samples/WorkflowCore.Sample10 at master · danielgerlag/workflow-core · GitHub

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

While sample

Illustrates how to implement a while loop within your workflow.

builder
    .StartWith<SayHello>()
    .While(data => data.Counter < 3)
        .Do(x => x
            .StartWith<DoSomething>()
            .Then<IncrementStep>()
                .Input(step => step.Value1, data => data.Counter)
                .Output(data => data.Counter, step => step.Value2))
    .Then<SayGoodbye>();

Back | FazBrowse Home | New Git URL