Exemplo n.º 1
0
 public void Handle(ICommandContext context, ChangeReplyBodyCommand command)
 {
     context.Get <Reply>(command.AggregateRootId).ChangeBody(command.Body);
 }
Exemplo n.º 2
0
        public async Task HandleAsync(ICommandContext context, ChangeReplyBodyCommand command)
        {
            var reply = await context.GetAsync <Reply>(command.AggregateRootId);

            reply.ChangeBody(command.Body);
        }