コード例 #1
0
 public static Result Fail(string message, PostResultActionType postResultAction)
 {
     return(new Result(ResultStatus.Error, message, postResultAction));
 }
コード例 #2
0
 public static Result <T> Fail <T>(string message, PostResultActionType postResultAction)
 {
     return(new Result <T>(default(T), ResultStatus.Error, message, postResultAction));
 }
コード例 #3
0
 protected Result(ResultStatus status, string message = null, PostResultActionType postResultAction = PostResultActionType.CanContinue)
 {
     this.PostResultAction = postResultAction;
     this.Status           = status;
     this.Message          = message;
 }