示例#1
0
 public static void SuccessNonJsonConvert(this SOAPResult r, string data)
 {
     r.IsComplete = true;
     r.IsSuccess  = true;
     if (data != null)
     {
         r.ReturnObjectJson = data;
     }
 }
示例#2
0
 public static void Success(this SOAPResult r, object data = null)
 {
     r.IsComplete = true;
     r.IsSuccess  = true;
     if (data != null)
     {
         r.ReturnObjectJson = JsonUtils.SerializeObject(data);
     }
 }
示例#3
0
 public static void Fail(this SOAPResult r, BusinessException ex)
 {
     r.IsComplete            = true;
     r.IsSuccess             = false;
     r.BusinessExceptionInfo = ex.GetInfo();
 }
示例#4
0
 public static void Error(this SOAPResult r, Exception ex)
 {
     r.IsComplete    = false;
     r.ExceptionInfo = ex.GetFullInfo();
     r.IsSuccess     = false;
 }