public override BlockStoreCachePerformanceSnapshot Snapshot() { var snap = new IndexStoreCachePerformanceSnapshot(this.CacheHitCount, this.CacheMissCount, this.CacheRemoveCount, this.CacheSetCount) { Start = this.Start, Taken = this.dateTimeProvider.GetUtcNow() }; return(snap); }
public override BlockStoreCachePerformanceSnapshot Snapshot() { #if !(PORTABLE || NETCORE) Thread.MemoryBarrier(); #endif var snap = new IndexStoreCachePerformanceSnapshot(this.CacheHitCount, this.CacheMissCount, this.CacheRemoveCount, this.CacheSetCount) { Start = this.Start, Taken = DateTime.UtcNow }; return(snap); }