Skip to content

Latest commit

 

History

History

WorkflowCore.Sample10

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>();