internal MruManager(MruManager source) { mruManager = new InternalMruManager(source.mruManager); CacheCollection = new Collections.Generic.SortedDictionary <object, object>(source.CacheCollection.Comparer); foreach (var item in source.CacheCollection) { addInTail(((MruItem)item.Value).Key, ((MruItem)item.Value).Value, ((MruItem)item.Value).Transaction); } }
private ConcurrentMruManager(ConcurrentMruManager source) { realMruManager = new MruManager(source.realMruManager); }
/// <summary> /// Constructor expecting MinCapacity & MaxCapacity /// </summary> /// <param name="minCapacity"></param> /// <param name="maxCapacity"></param> /// <param name="comparer"> </param> public ConcurrentMruManager(int minCapacity, int maxCapacity, IComparer <object> comparer) { realMruManager = new MruManager(minCapacity, maxCapacity, comparer); }
/// <summary> /// Default Constructor /// </summary> public ConcurrentMruManager() { realMruManager = new MruManager(); }