internal void OnCacheClear(Object sender, ClearCacheEventArgs cacheEventArgs)
 {
     LogAction(CacheAction.ClearCache, CacheObjType.EmptyElement);
     //NB: The order of these operations is important to maintaining
     //a no-read-lock-required operation.  We need to take a lock in case there is
     //a thread in the insert code at the time that we update this.
     lock (this) {
         m_numItems = 0;
         m_cache    = null;
     }
 }
Exemple #2
0
 internal void OnCacheClear(object sender, ClearCacheEventArgs cacheEventArgs)
 {
     this.m_cachedData = null;
 }
Exemple #3
0
 internal void OnCacheClear(Object sender, ClearCacheEventArgs cacheEventArgs) {
     m_cachedData = null;
 }
Exemple #4
0
 internal void OnCacheClear(object sender, ClearCacheEventArgs cacheEventArgs);
Exemple #5
0
 internal void OnCacheClear(Object sender, ClearCacheEventArgs cacheEventArgs) {
     LogAction(CacheAction.ClearCache, CacheObjType.EmptyElement); 
     //NB: The order of these operations is important to maintaining
     //a no-read-lock-required operation.  We need to take a lock in case there is 
     //a thread in the insert code at the time that we update this.
     lock (this) {
         m_numItems = 0;
         m_cache = null;
     }
 }