/// <summary>
 /// Initializes a new instance of the <see cref="CounterDictCache"/> class.
 /// </summary>
 /// <param name="capacity">容量大小</param>
 /// <param name="dict">字典对象</param>
 /// <param name="autoRecyleTime">自动回收时间</param>
 /// <exception cref="System.ArgumentException">回收容量值不能大于构造容量</exception>
 /// <param name="locker">锁</param>
 protected CounterDictCache(int capacity, TimeSpan autoRecyleTime, IDictionary <TKey, CacheValueObject> dict, IRigidLocker locker)
 {
     this.recyle   = capacity % 98;
     this.capacity = capacity;
     this.dict     = dict;
     this.locker   = locker;
     CounterDictCacheAutoRecyler.Instance.Register(this, autoRecyleTime);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MultipleEventStorager"/> class.
 /// </summary>
 /// <param name="callback">The callback.</param>
 public MultipleEventStorager(Func <IEnumerable <IEventStorager> > callback)
 {
     this.callback = callback;
     this.locker   = new MonitorLocker();
 }