Ejemplo n.º 1
0
 protected void Return(int value)
 {
     context.Return(value);
 }
 private void ValidateTheCommand(ICommandHandlingContext <TCommand> handlingContext, TCommand command, TAggregateRoot aggregateRoot)
 {
     ValidationResult = ValidateCommand(command, aggregateRoot);
     handlingContext.Return(ValidationResult);
 }
 public void Handle(ICommandHandlingContext <MyTest2Command> handlingContext)
 {
     handlingContext.Return(handlingContext.Command.ReturnValue);
 }
 private void ValidateTheCommand(ICommandHandlingContext <TCommand> handlingContext, TCommand command)
 {
     ValidationResult = ValidateCommand(command);
     handlingContext.Return(ValidationResult);
 }