예제 #1
0
 /// <summary>Default constructor.</summary>
 public SQLNETItem()
 {
     CacheKey        = Guid.NewGuid().ToString();
     ParameterTables = new ListDictionary();
     ParameterTypes  = new SharedCache <string, Type>();
     ParameterValues = new ListDictionary();
     ParallelItems   = new SharedBucketList();
 }
예제 #2
0
        public SharedBuckedCache(int bucketSize = 100)
        {
            Buckets = new SharedCache <TKey, TValue> [bucketSize];

            for (var i = 0; i < bucketSize; i++)
            {
                Buckets[i] = new SharedCache <TKey, TValue>();
            }
        }