TaskConfig.cs 819 B

12345678910111213141516171819202122232425262728293031323334353637
  1. namespace App.Robot.Station.Logical.Model
  2. {
  3. public class TaskConfig
  4. {
  5. public string name="taskName";
  6. public string apiRoute;
  7. public string apiArg;
  8. public string httpMethod;
  9. /// <summary>
  10. /// (为http时有效)是否使用HttpUtil。默认使用HttpClient
  11. /// </summary>
  12. public bool httpUseHttpUtil;
  13. public int threadCount=1;
  14. public int loopCountPerThread=2000;
  15. /// <summary>
  16. /// 每次调用时间间隔。(单位:ms)
  17. /// </summary>
  18. public int interval = 100;
  19. public bool autoStart = true;
  20. /// <summary>
  21. /// 失败时是否控制台输出
  22. /// </summary>
  23. public bool logError = false;
  24. }
  25. }