When you change
|
public sealed class Action : IAction |
|
{ |
|
public int Amount { get; } |
|
|
|
public Action(int amount) |
|
{ |
|
Amount = amount; |
|
} |
|
} |
to use a primary constructor
public sealed class Action(int amount) : IAction
{
public int Amount { get; } = amount;
}
the code generator creates code without the parameter, and the code doesn't compile.
When you change
timewarp-state/samples/00-state-action-handler/server/sample-00-server/features/counter/counter-state.increment-count.cs
Lines 7 to 15 in bf3990b
to use a primary constructor
the code generator creates code without the parameter, and the code doesn't compile.