-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ca9f89a
commit 00e6df0
Showing
5 changed files
with
1 addition
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,9 @@ | ||
using System.Linq; | ||
using Elsa.Services; | ||
|
||
namespace Sample04.Activities | ||
{ | ||
public class Divide : ArithmeticOperation | ||
{ | ||
public Divide(IWorkflowExpressionEvaluator evaluator) : base(evaluator) | ||
{ | ||
} | ||
|
||
protected override double Calculate(params double[] values) => values.Aggregate((left, right) => left / right); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,9 @@ | ||
using System.Linq; | ||
using Elsa.Services; | ||
|
||
namespace Sample04.Activities | ||
{ | ||
public class Multiply : ArithmeticOperation | ||
{ | ||
public Multiply(IWorkflowExpressionEvaluator evaluator) : base(evaluator) | ||
{ | ||
} | ||
|
||
protected override double Calculate(params double[] values) => values.Aggregate((left, right) => left * right); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,9 @@ | ||
using System.Linq; | ||
using Elsa.Services; | ||
|
||
namespace Sample04.Activities | ||
{ | ||
public class Subtract : ArithmeticOperation | ||
{ | ||
public Subtract(IWorkflowExpressionEvaluator evaluator) : base(evaluator) | ||
{ | ||
} | ||
|
||
protected override double Calculate(params double[] values) => values.Aggregate((left, right) => left - right); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,9 @@ | ||
using System.Linq; | ||
using Elsa.Services; | ||
|
||
namespace Sample04.Activities | ||
{ | ||
public class Sum : ArithmeticOperation | ||
{ | ||
public Sum(IWorkflowExpressionEvaluator evaluator) : base(evaluator) | ||
{ | ||
} | ||
|
||
protected override double Calculate(params double[] values) => values.Sum(); | ||
} | ||
} |