public CallSiteBinderCacheTable()
 {
     this.WeakCache = new WeakCallSiteBinderCache();
     this.StrongCache = new ConcurrentDictionary<string, MessageSendCallSiteBinder>();
     foreach (string selector in CallSiteBinderCacheTable.CommonSelectors)
         this.StrongCache[selector] = null;
 }
Exemple #2
0
 public CallSiteBinderCacheTable(IEnumerable <TKey> strongKeys, IEqualityComparer <TKey> comparer)
 {
     this.WeakCache   = new WeakCallSiteBinderCache(comparer);
     this.StrongCache = new ConcurrentDictionary <TKey, TValue>(Environment.ProcessorCount, 250, comparer);
     if (strongKeys != null)
     {
         foreach (TKey key in strongKeys)
         {
             this.StrongCache[key] = null;
         }
     }
 }