Skip to content

Commit

Permalink
Add stop on errorr to constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobsen9026 committed Feb 27, 2024
1 parent 2deb3ae commit bdb10b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion BLAZAM/BLAZAM.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<ServerGarbageCollection>false</ServerGarbageCollection>
<AssemblyVersion>0.8.9</AssemblyVersion>
<Version>2024.02.26.0341</Version>
<Version>2024.02.27.2343</Version>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
<RootNamespace>BLAZAM</RootNamespace>
<GenerateDocumentationFile>False</GenerateDocumentationFile>
Expand Down
7 changes: 5 additions & 2 deletions BLAZAMJobs/JobStep.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,16 @@ public class JobStep : JobStepBase, IJobStep
public Func<JobStep?, Task<bool>>? AsyncAction { get; }


public JobStep(string name, Func<JobStep?, bool> action)
public JobStep(string name, Func<JobStep?, bool> action,bool stopOnError=false)
{
StopOnFailedStep = stopOnError;
Name = name;
Action = action;
}
public JobStep(string name, Func<JobStep?, Task<bool>> asyncAction)
public JobStep(string name, Func<JobStep?, Task<bool>> asyncAction, bool stopOnError = false)
{
StopOnFailedStep = stopOnError;

Name = name;
AsyncAction = asyncAction;
}
Expand Down

0 comments on commit bdb10b9

Please sign in to comment.