We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4767ec0 commit dff7721Copy full SHA for dff7721
src/Proto.Cluster/ClusterKind.cs
@@ -42,6 +42,14 @@ public record ClusterKind(string Name, Props Props)
42
/// <summary>Props to spawn the virtual actor</summary>
43
[JsonIgnore] public Props Props { get; init; } = Props;
44
45
+ /// <summary>
46
+ /// Creates a copy of the ClusterKind with the updated Props
47
+ /// </summary>
48
+ /// <param name="configureProps">Function to configure a new Props</param>
49
+ /// <returns></returns>
50
+ public ClusterKind WithProps(Func<Props, Props> configureProps) =>
51
+ this with { Props = configureProps(Props) };
52
+
53
/// <summary>
54
/// Sets the <see cref="IMemberStrategy" /> to be used when placing the actor in the cluster
55
/// </summary>
0 commit comments