Exemplo n.º 1
0
 /// <summary>
 /// 返回新的方法成功结果
 /// </summary>
 /// <param name="result">请求结果</param>
 /// <param name="format">执行描述格式</param>
 /// <param name="args">执行描述参数</param>
 /// <returns>方法成功结果类</returns>
 public static MethodSuccessResult <T> SuccessAndLog <T>(T result, String format, params String[] args)
 {
     return(MethodSuccessResult <T> .CreateLog(result, format, args));
 }
Exemplo n.º 2
0
 /// <summary>
 /// 返回新的方法成功结果
 /// </summary>
 /// <param name="result">请求结果</param>
 /// <returns>方法成功结果类</returns>
 public static MethodSuccessResult <T> Success <T>(T result)
 {
     return(MethodSuccessResult <T> .CreateEmpty(result));
 }
Exemplo n.º 3
0
 /// <summary>
 /// 返回新的方法成功结果
 /// </summary>
 /// <param name="format">执行描述格式</param>
 /// <param name="args">执行描述参数</param>
 /// <returns>方法成功结果类</returns>
 public static MethodSuccessResult SuccessAndLog(String format, params String[] args)
 {
     return(MethodSuccessResult.CreateLog(format, args));
 }
Exemplo n.º 4
0
 /// <summary>
 /// 返回新的方法成功结果
 /// </summary>
 /// <returns>方法成功结果类</returns>
 public static MethodSuccessResult Success()
 {
     return(MethodSuccessResult.CreateEmpty());
 }