Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 

25 wiersze
769 B

  1. using Microsoft.Extensions.Options;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. namespace JT808.DotNetty.CleintBenchmark.Configs
  6. {
  7. public class ClientBenchmarkOptions : IOptions<ClientBenchmarkOptions>
  8. {
  9. public string IP { get; set; }
  10. public int Port { get; set; }
  11. public int DeviceCount { get; set; } = 10;
  12. /// <summary>
  13. /// 5000ms毫秒
  14. /// </summary>
  15. public int Interval { get; set; } = 5000;
  16. /// <summary>
  17. /// 需要多台机器同时访问,那么可以根据这个避开重复终端号
  18. /// 100000-200000-300000
  19. /// </summary>
  20. public int DeviceTemplate { get; set; } = 0;
  21. public ClientBenchmarkOptions Value =>this;
  22. }
  23. }