Skip to content

ARC0004: [Command] type must have public Handle() method

Any type marked with [Command] must declare a public instance Handle() method.

Error

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()
{
}
}