Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        public static ActorMessageContext Create(PID actor, Command command)
        {
            var context = new ActorMessageContext {
                Actor = actor
            };

            context.Commands.Add(command);
            return(context);
        }