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