Skip to content

Commit d161f84

Browse files
committed
wip
1 parent cd38f57 commit d161f84

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

src/WorkflowCore/Models/ActionParameter.cs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,24 @@ namespace WorkflowCore.Models
88
{
99
public class ActionParameter<TStepBody, TData> : IStepParameter
1010
{
11-
private readonly Action<TStepBody, TData> _action;
11+
private readonly Action<TStepBody, TData, IStepExecutionContext> _action;
1212

13-
public ActionParameter(Action<TStepBody, TData> action)
13+
public ActionParameter(Action<TStepBody, TData, IStepExecutionContext> action)
1414
{
1515
_action = action;
1616
}
1717

18+
public ActionParameter(Action<TStepBody, TData> action)
19+
{
20+
_action = new Action<TStepBody, TData, IStepExecutionContext>((body, data, context) =>
21+
{
22+
action(body, data);
23+
});
24+
}
25+
1826
private void Assign(object data, IStepBody step, IStepExecutionContext context)
1927
{
20-
_action.Invoke((TStepBody)step, (TData)data);
28+
_action.Invoke((TStepBody)step, (TData)data, context);
2129
}
2230

2331
public void AssignInput(object data, IStepBody body, IStepExecutionContext context)

src/WorkflowCore/Primitives/WaitFor.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ public override ExecutionResult Run(IStepExecutionContext context)
2020
{
2121
DateTime effectiveDate = DateTime.MinValue;
2222

23-
// TODO: This will always execute.
2423
if (EffectiveDate != null)
2524
{
2625
effectiveDate = EffectiveDate;

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>1.9.3</Version>
19-
<AssemblyVersion>1.9.3.0</AssemblyVersion>
20-
<FileVersion>1.9.3.0</FileVersion>
18+
<Version>1.9.4</Version>
19+
<AssemblyVersion>1.9.4.0</AssemblyVersion>
20+
<FileVersion>1.9.4.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)