Exemple #1
0
 /// <summary>
 /// 超时计数
 /// </summary>
 /// <param name="commandPool"></param>
 /// <param name="maxSeconds">最大超时秒数,必须大于 0</param>
 internal TimeoutCount(CommandPool commandPool, int maxSeconds) : base(maxSeconds)
 {
     this.commandPool = commandPool;
 }
Exemple #2
0
 /// <summary>
 /// 超时事件
 /// </summary>
 /// <param name="commandPool"></param>
 /// <param name="seconds"></param>
 internal Timeout(CommandPool commandPool, uint seconds)
 {
     this.commandPool = commandPool;
     this.seconds     = seconds;
 }