Skip to content

Commit 79bc406

Browse files
committed
surface context parameter in Input overload
1 parent 4e772e4 commit 79bc406

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/WorkflowCore/Services/FluentBuilders/StepBuilder.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,12 @@ public IStepBuilder<TData, TStepBody> Input(Action<TStepBody, TData> action)
118118
return this;
119119
}
120120

121+
public IStepBuilder<TData, TStepBody> Input(Action<TStepBody, TData, IStepExecutionContext> action)
122+
{
123+
Step.Inputs.Add(new ActionParameter<TStepBody, TData>(action));
124+
return this;
125+
}
126+
121127
public IStepBuilder<TData, TStepBody> Output<TOutput>(Expression<Func<TData, TOutput>> dataProperty, Expression<Func<TStepBody, object>> value)
122128
{
123129
Step.Outputs.Add(new MemberMapParameter(value, dataProperty));

src/WorkflowCore/WorkflowCore.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
1616
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
1717
<Description>Workflow Core is a light weight workflow engine targeting .NET Standard.</Description>
18-
<Version>2.1.0</Version>
19-
<AssemblyVersion>2.0.1.0</AssemblyVersion>
20-
<FileVersion>2.0.1.0</FileVersion>
18+
<Version>2.1.1</Version>
19+
<AssemblyVersion>2.1.1.0</AssemblyVersion>
20+
<FileVersion>2.1.1.0</FileVersion>
2121
<PackageReleaseNotes></PackageReleaseNotes>
2222
<PackageIconUrl>https://github.com/danielgerlag/workflow-core/raw/master/src/logo.png</PackageIconUrl>
2323
</PropertyGroup>

0 commit comments

Comments
 (0)