Example #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="disposing"></param>
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         _period   = null;
         _itemData = null;
     }
     base.Dispose(disposing);
 }
 /// <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="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);
            }

        }
Example #4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="disposing"></param>
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         _period   = null;
         _itemData = null;
     }
     if (disposing)
     {
         GC.SuppressFinalize(this);
     }
 }
 /// <summary>
 /// 
 /// </summary>
 /// <param name="disposing"></param>
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         _period = null;
         _itemData = null;
     }
     if (disposing)
     {
         GC.SuppressFinalize(this);
     }
 }
Example #6
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="disposing"></param>
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         _period = null;
         _itemData = null;
     }
     base.Dispose(disposing);
 }