Example #1
0
 private CommandHandled(TCommand command, TCommandResult result, CommandResultStatus resultStatus, string commandProcessingMessage)
 {
     Command                  = command;
     Result                   = result;
     ResultStatus             = resultStatus;
     CommandProcessingMessage = commandProcessingMessage;
 }
Example #2
0
 public static CommandHandled <TCommand, TCommandResult> CreateUnsuccessfulResult(TCommand command, CommandResultStatus resultStatus,
                                                                                  string unsuccessfulMessage)
 {
     return(new CommandHandled <TCommand, TCommandResult>(command, default(TCommandResult), resultStatus, unsuccessfulMessage));
 }
Example #3
0
 public static CommandHandled <TCommand, TCommandResult> CreateUnsuccessfulResult(TCommand command, CommandResultStatus resultStatus)
 {
     return(new CommandHandled <TCommand, TCommandResult>(command, default(TCommandResult), resultStatus, "Command not successful handled"));
 }