/// <summary> /// /// </summary> /// <param name="cacheItemType"></param> /// <param name="periodTime"></param> /// <param name="isReadOnly"></param> public CacheItemSet(CacheType cacheItemType, int periodTime, bool isReadOnly) { LoadingStatus = LoadingStatus.None; _cacheItemType = cacheItemType; _isReadOnly = isReadOnly; if (periodTime > 0) { _period = new CachePeriod(periodTime); } }
/// <summary> /// /// </summary> /// <param name="disposing"></param> protected virtual void Dispose(bool disposing) { if (disposing) { _period = null; _itemData = null; } if (disposing) { GC.SuppressFinalize(this); } }