View on GitHub
Clean Architecture Toolkit for .NET
Clean Architecture Toolkit is a clean, modular architecture foundation for .NET applications.
It embraces SOLID principles and focuses on maintainability, testability, and scalability through clear boundaries and pluggable design.

|   HOME   |   MODULE OVERVIEW   |   DEMO   |   CAT.FLUENTWORKFLOWS   |

Code Reference

» Cat.FluentWorkflows.Abstractions Assembly » Cat.FluentWorkflows.Abstractions Namespace » ICatStepBuilder<TWorkflowState,TStepBody> Interface

ICatStepBuilder<TWorkflowState,TStepBody>.Input<TInput>(Expression<Func<TWorkflowState,TInput>>, Expression<Func<TStepBody,TInput>>) Method

Copies a value from the workflow state into a member of the step, right before the step runs.

Cat.FluentWorkflows.Abstractions.ICatStepBuilder<TWorkflowState,TStepBody> Input<TInput>(System.Linq.Expressions.Expression<System.Func<TWorkflowState,TInput>> source, System.Linq.Expressions.Expression<System.Func<TStepBody,TInput>> target);

Type parameters

TInput

The type of the value.

Parameters

source System.Linq.Expressions.Expression<System.Func<TWorkflowState,TInput>>

Reads the value from the state, like s => s.Total.

target System.Linq.Expressions.Expression<System.Func<TStepBody,TInput>>

Picks the member of the step to fill, like step => step.Amount. It must be a member access.

Returns

Cat.FluentWorkflows.Abstractions.ICatStepBuilder<TWorkflowState,TStepBody>
The same builder, so calls can be chained.