コード例 #1
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="speed">传输速率值(数值大于0时启用)</param>
 /// <param name="unit">传输速率单位</param>
 /// <param name="delay">传输间隔毫秒数</param>
 public ModHttpTransSpeed(int speed, EHttpSpeedUnit unit, int delay)
 {
     Speed = speed;
     Unit  = unit;
     Delay = delay;
 }
コード例 #2
0
 /// <summary>
 /// 构造函数(默认延时100MS)
 /// </summary>
 /// <param name="speed">传输速率值(数值大于0时启用)</param>
 /// <param name="unit">传输速率单位</param>
 public ModHttpTransSpeed(int speed, EHttpSpeedUnit unit)
 {
     Speed = speed;
     Unit  = unit;
 }