2022-05-26 10:47:31 +00:00
|
|
|
using Elsa.Expressions.Models;
|
2023-03-03 21:47:23 +00:00
|
|
|
using Elsa.Mediator.Contracts;
|
2022-01-12 10:43:46 +00:00
|
|
|
using Jint;
|
|
|
|
|
|
2022-05-26 10:47:31 +00:00
|
|
|
namespace Elsa.JavaScript.Notifications;
|
2022-01-12 10:43:46 +00:00
|
|
|
|
2022-11-20 18:00:03 +00:00
|
|
|
/// <summary>
|
|
|
|
|
/// This notification is published every time a JavaScript expression is about to be evaluated.
|
|
|
|
|
/// It gives subscribers a chance to configure the <see cref="Engine"/> with additional functions and variables.
|
|
|
|
|
/// </summary>
|
2024-10-02 07:11:35 +00:00
|
|
|
public record EvaluatingJavaScript(Engine Engine, ExpressionExecutionContext Context, string Expression) : INotification;
|