Example #1
0
 protected async Task <CommandResult> Execute(SingleAggregateCommand command, Action <TAggregate> action)
 {
     action(await _service.Get <TAggregate>(command.AggragateId));
     return(await _service.EmitEventsFor(command));
 }