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.
This commit is contained in:
Sipke Schoorstra 2024-07-07 11:34:03 +02:00
parent 1c52c7e7c9
commit 37d14dd26c
2 changed files with 3 additions and 2 deletions

View file

@ -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}"

View file

@ -65,7 +65,7 @@ public class ActivityDescriptor
/// Instantiates a concrete instance of an <see cref="IActivity"/>.
/// </summary>
[JsonIgnore]
public Func<ActivityConstructorContext, IActivity> Constructor { get; init; } = default!;
public Func<ActivityConstructorContext, IActivity> Constructor { get; set; } = default!;
/// <summary>
/// The kind of activity.
@ -75,7 +75,7 @@ public class ActivityDescriptor
/// <summary>
/// The ports of the activity type.
/// </summary>
public ICollection<Port> Ports { get; init; } = new List<Port>();
public ICollection<Port> Ports { get; set; } = new List<Port>();
/// <summary>
/// The custom properties of the activity type.