Beispiel #1
0
 public static void SuccessNonJsonConvert(this SOAPResult r, string data)
 {
     r.IsComplete = true;
     r.IsSuccess  = true;
     if (data != null)
     {
         r.ReturnObjectJson = data;
     }
 }
Beispiel #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);
     }
 }
Beispiel #3
0
 public static void Fail(this SOAPResult r, BusinessException ex)
 {
     r.IsComplete            = true;
     r.IsSuccess             = false;
     r.BusinessExceptionInfo = ex.GetInfo();
 }
Beispiel #4
0
 public static void Error(this SOAPResult r, Exception ex)
 {
     r.IsComplete    = false;
     r.ExceptionInfo = ex.GetFullInfo();
     r.IsSuccess     = false;
 }