You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
999 B

  1. using OT.COM.LogisticsUtil;
  2. using OT.COM.SignalerMessage;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Data;
  6. using System.Linq;
  7. using System.Text;
  8. namespace CounsellorBL
  9. {
  10. public partial class JemeterTestService
  11. {
  12. public CResponseMessage TestJMeter(CRequestMessage i_crm)
  13. {
  14. CResponseMessage crm = null;
  15. string sMsg = null;
  16. try
  17. {
  18. do
  19. {
  20. Random r = new Random(DateTime.Now.Millisecond);
  21. crm = new CSuccessResponseMessage(string.Format("ResTest {0}", r.Next()), i_crm);
  22. }
  23. while (false);
  24. }
  25. catch (Exception ex)
  26. {
  27. sMsg = new Util().GetLastExceptionMsg(ex);
  28. }
  29. if (null != sMsg)
  30. {
  31. crm = new CErrorResponseMessage(sMsg, i_crm);
  32. }
  33. return crm;
  34. }
  35. }
  36. }