/// <summary>
 /// 用指定的数据初始化此实例。
 /// </summary>
 /// <param name="maxSize">队列最大长度上限。</param>
 /// <param name="comparer">在比较键时要使用的 System.Collections.Generic.IComparer&lt;T&gt; 实现;或者为 null,表示为键类型使用默认的 System.Collections.Generic.Comparer&lt;T&gt;。</param>
 public RepeatSortedWaitQueue(int maxSize, System.Collections.Generic.IComparer <TKey> comparer)
 {
     this.MaxSize = maxSize;
     this.datas   = new RepeatSortedDictionary <TKey, TValue>(comparer);
 }
 /// <summary>
 /// 用指定的数据初始化此实例。
 /// </summary>
 /// <param name="maxSize">队列最大长度上限。</param>
 public RepeatSortedWaitQueue(int maxSize)
 {
     this.MaxSize = maxSize;
     this.datas   = new RepeatSortedDictionary <TKey, TValue>();
 }
コード例 #3
0
 /// <summary>
 /// 用指定的数据初始化此实例。
 /// </summary>
 /// <param name="maxSize">队列最大长度上限。</param>
 public TaskQueue(int maxSize)
 {
     this.MaxSize = maxSize;
     this.datas   = new RepeatSortedDictionary <System.DateTime, Task <T> >();
 }
 /// <summary>
 /// 一个构造方法。
 /// </summary>
 public RepeatSortedWaitQueue()
 {
     this.datas = new RepeatSortedDictionary <TKey, TValue>();
 }
コード例 #5
0
 /// <summary>
 /// 一个构造方法。
 /// </summary>
 public TaskQueue()
 {
     this.datas = new RepeatSortedDictionary <System.DateTime, Task <T> >();
 }