public static ActorMessageContext Create(PID actor, IValidable condition, params Command[] commands) { var context = new ActorMessageContext { Actor = actor, Condition = condition }; context.Commands.AddRange(commands); return(context); }
public static ActorMessageContext Create(PID actor, Command command) { var context = new ActorMessageContext { Actor = actor }; context.Commands.Add(command); return(context); }