Exemple #1
0
 /// <summary>
 /// 重置子类绑定事件
 /// </summary>
 protected virtual void InitializeChangeEvent()
 {
     if (!_isDisableEvent)
     {
         _itemEvent     = new CacheItemChangeEvent();
         _childrenEvent = new CacheItemChangeEvent();
     }
 }
Exemple #2
0
 /// <summary>
 ///
 /// </summary>
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         //释放 托管资源
         if (_itemEvent != null)
         {
             _itemEvent.Dispose();
             _itemEvent = null;
         }
         if (_childrenEvent != null)
         {
             _childrenEvent.Dispose();
             _childrenEvent = null;
         }
     }
     base.Dispose(disposing);
 }