public List <T> Filtrate(CacheFilter <T> filter, out int totalCount) { LogStopwatch watch = new LogStopwatch(this.GetType().Name + ".Filtrate", ""); watch.Start(); try { return(filter.Filtrate(this.CacheList, out totalCount)); } finally { watch.Stop(); } }
public List <T> Filtrate(CacheFilter <T> filter) { this.EnableValidate(); LogStopwatch watch = new LogStopwatch(this.GetType().Name + ".Filtrate", ""); watch.Start(); this.Lock.AcquireReaderLock(10000); try { return(filter.Filtrate(this._cacheList)); } finally { this.Lock.ReleaseReaderLock(); watch.Stop(); } }