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;
     }
 }
示例#2
0
 internal void OnCacheClear(object sender, ClearCacheEventArgs cacheEventArgs)
 {
     this.m_cachedData = null;
 }
示例#3
0
 internal void OnCacheClear(Object sender, ClearCacheEventArgs cacheEventArgs) {
     m_cachedData = null;
 }
示例#4
0
 internal void OnCacheClear(object sender, ClearCacheEventArgs cacheEventArgs);
示例#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;
     }
 }