ARC0004: [Command] type must have public Handle() method
Any type marked with [Command] must declare a public instance Handle() method.
Severity
Section titled “Severity”Error
Example
Section titled “Example”Violation
Section titled “Violation”using Cratis.Arc.Commands.ModelBound;
[Command]public record CreateOrder{ public string OrderId { get; set; }}using Cratis.Arc.Commands.ModelBound;
[Command]public record CreateOrder{ internal void Handle() { }}using Cratis.Arc.Commands.ModelBound;
[Command]public record CreateOrder{ public string OrderId { get; set; }
public void Handle() { }}