| | | 1 | | using Elsa.Expressions.Models; |
| | | 2 | | using Elsa.Extensions; |
| | | 3 | | using Elsa.Workflows.Models; |
| | | 4 | | |
| | | 5 | | namespace Elsa.Workflows; |
| | | 6 | | |
| | 305 | 7 | | public class TriggerIndexingContext(WorkflowIndexingContext workflowIndexingContext, ExpressionExecutionContext expressi |
| | | 8 | | { |
| | 305 | 9 | | public WorkflowIndexingContext WorkflowIndexingContext { get; } = workflowIndexingContext; |
| | 610 | 10 | | public ExpressionExecutionContext ExpressionExecutionContext { get; } = expressionExecutionContext; |
| | 305 | 11 | | public ITrigger Trigger { get; } = trigger; |
| | 305 | 12 | | public CancellationToken CancellationToken { get; } = cancellationToken; |
| | | 13 | | |
| | | 14 | | /// <summary> |
| | | 15 | | /// The default stimulus name applied to the payloads returned by the trigger being indexed. Defaults to the activit |
| | | 16 | | /// </summary> |
| | | 17 | | /// <remarks> |
| | | 18 | | /// This is a single value shared by every payload of the trigger: when it is assigned more than once, the last writ |
| | | 19 | | /// A trigger that needs to register payloads under more than one stimulus name should return <see cref="NamedTrigge |
| | | 20 | | /// which carry a name per payload and take precedence over this property. |
| | | 21 | | /// </remarks> |
| | 914 | 22 | | public string TriggerName { get; set; } = trigger.Type; |
| | | 23 | | |
| | 0 | 24 | | public T? Get<T>(Input<T>? input) => ExpressionExecutionContext.Get(input); |
| | | 25 | | } |