elsa-core/src/modules/Elsa.Workflows.Runtime/Models/Stimulus.cs

11 lines
753 B
C#
Raw Normal View History

using Elsa.Workflows.Core;
using Elsa.Workflows.Runtime.Stimuli;
2022-01-04 08:42:12 +00:00
namespace Elsa.Workflows.Runtime.Models;
2022-01-04 08:42:12 +00:00
2022-02-22 11:51:59 +00:00
public static class Stimulus
2022-01-04 08:42:12 +00:00
{
2022-04-11 12:19:55 +00:00
public static StandardStimulus Standard(string activityTypeName, string? hash = default, IDictionary<string, object>? input = default, string? correlationId = default) => new(activityTypeName, hash, input, correlationId);
public static StandardStimulus Standard(string activityTypeName, string? hash, object input, string? correlationId = default) => new(activityTypeName, hash, input.ToDictionary(), correlationId);
public static StandardStimulus Standard(string activityTypeName, object input, string? correlationId = default) => new(activityTypeName, default, input.ToDictionary(), correlationId);
2022-01-04 08:42:12 +00:00
}