public StatisticsDecorator(CacheStatistics statistics, ICache cache) : base(cache) { if (statistics == null) { throw new ArgumentNullException("statistics"); } _statistics = statistics; }
public StatisticsCache(IEnumerable <CacheStatistic> statistics, ICache cache) : base(cache) { _statistics = new CacheStatistics(statistics); }