forked from elsa-workflows/elsa-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Jint options configuration (elsa-workflows#3178)
* Adding notification to intecept jint options * Moving notificiation into it's own file
- Loading branch information
1 parent
520e3d3
commit e840d12
Showing
3 changed files
with
21 additions
and
3 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
src/scripting/Elsa.Scripting.JavaScript/Messages/ConfigureJavaScriptOptions.cs
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using Elsa.Services.Models; | ||
using MediatR; | ||
|
||
namespace Elsa.Scripting.JavaScript.Messages | ||
{ | ||
public class ConfigureJavaScriptOptions : INotification | ||
{ | ||
public ConfigureJavaScriptOptions(Jint.Options options, ActivityExecutionContext context) | ||
{ | ||
JintOptions = options; | ||
ActivityExecutionContext = context; | ||
} | ||
public Jint.Options JintOptions { get; set; } | ||
public ActivityExecutionContext ActivityExecutionContext { get; } | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
src/scripting/Elsa.Scripting.JavaScript/Messages/EvaluatingJavaScriptExpression.cs
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,4 +1,4 @@ | ||
using Elsa.Services.Models; | ||
using Elsa.Services.Models; | ||
using Jint; | ||
using MediatR; | ||
|
||
|
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