diff --git a/src/core/Elsa.Abstractions/Services/Models/ActivityType.cs b/src/core/Elsa.Abstractions/Services/Models/ActivityType.cs index 3ab0c98e2..c69726c62 100644 --- a/src/core/Elsa.Abstractions/Services/Models/ActivityType.cs +++ b/src/core/Elsa.Abstractions/Services/Models/ActivityType.cs @@ -34,7 +34,7 @@ namespace Elsa.Services.Models public IDictionary Annotations { get; set; } = new Dictionary(); public Func> ActivateAsync { get; set; } = _ => new ValueTask(); - + /// /// Returns a value of whether the specified activity can execute. /// @@ -43,12 +43,12 @@ namespace Elsa.Services.Models /// /// Executes the activity. /// - public Func> ExecuteAsync { get; set; } = (_, _) => new ValueTask(new DoneResult()); + public Func> ExecuteAsync { get; set; } = (_, _) => new ValueTask(new DoneResult()); /// /// Resumes the specified activity. /// - public Func> ResumeAsync { get; set; } = (_, _) => new ValueTask(new DoneResult()); + public Func> ResumeAsync { get; set; } = (_, _) => new ValueTask(new DoneResult()); public Func> DescribeAsync { get; set; } = () => new ValueTask(new ActivityDescriptor()); public bool IsBrowsable { get; set; } = true; diff --git a/src/dashboards/ElsaDashboard/Pages/_Host.cshtml b/src/dashboards/ElsaDashboard/Pages/_Host.cshtml index 0759137e8..3d363f630 100644 --- a/src/dashboards/ElsaDashboard/Pages/_Host.cshtml +++ b/src/dashboards/ElsaDashboard/Pages/_Host.cshtml @@ -23,17 +23,17 @@ + // Configure Elsa during the 'initializing' event. + elsaStudioRoot.addEventListener('initializing', e => { + const elsa = e.detail; + elsa.pluginManager.registerPlugin(WebhooksPlugin); + }); + \ No newline at end of file