From 37d14dd26c0f0323992b82e43440fc2f22f3c4bb Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Sun, 7 Jul 2024 11:34:03 +0200 Subject: [PATCH] Modify properties in ActivityDescriptor and add new workflow file Changed 'init' to 'set' in ActivityDescriptor properties to enable modification after initialization. Added new GitHub Actions workflow file (pr.yml) to the solution. --- Elsa.sln | 1 + src/modules/Elsa.Workflows.Core/Models/ActivityDescriptor.cs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Elsa.sln b/Elsa.sln index 0cccd0d7a..a0950aa3f 100644 --- a/Elsa.sln +++ b/Elsa.sln @@ -292,6 +292,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "pipelines", "pipelines", "{ .github\workflows\packages.yml = .github\workflows\packages.yml build.sh = build.sh .github\workflows\bounty.yml = .github\workflows\bounty.yml + .github\workflows\pr.yml = .github\workflows\pr.yml EndProjectSection EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "_build", "build\_build.csproj", "{99F2B1DA-2F69-4D70-A2A3-AC985AD91EC4}" diff --git a/src/modules/Elsa.Workflows.Core/Models/ActivityDescriptor.cs b/src/modules/Elsa.Workflows.Core/Models/ActivityDescriptor.cs index cd09df6bd..f243c29bf 100644 --- a/src/modules/Elsa.Workflows.Core/Models/ActivityDescriptor.cs +++ b/src/modules/Elsa.Workflows.Core/Models/ActivityDescriptor.cs @@ -65,7 +65,7 @@ public class ActivityDescriptor /// Instantiates a concrete instance of an . /// [JsonIgnore] - public Func Constructor { get; init; } = default!; + public Func Constructor { get; set; } = default!; /// /// The kind of activity. @@ -75,7 +75,7 @@ public class ActivityDescriptor /// /// The ports of the activity type. /// - public ICollection Ports { get; init; } = new List(); + public ICollection Ports { get; set; } = new List(); /// /// The custom properties of the activity type.