示例#1
0
 public static CommandResult Duplicate(CommandBase command, string message) => Fail(command, CommandResultError.Duplicate, message);
示例#2
0
 public static CommandResult Success(CommandBase command, string message = "") =>
 new CommandResult(command)
 {
     IsSuccess = true,
     Message   = message,
 };
示例#3
0
 public static CommandResult NotModified(CommandBase command, string message) => Fail(command, CommandResultError.NotModified, message);
示例#4
0
 protected CommandResult(CommandBase command)
 {
     Command = command;
 }