Example #1
0
 public void Destroy()
 {
     logger.Debug("{0} called Destroy()", this.GetType());
     NotifyConfiguration.Instance.UnsubscribeAll(this);
     if (UoW != null)
     {
         UoW.Dispose();
     }
 }
Example #2
0
        public override void Destroy()
        {
            logger.Debug("OrmReference #{0} Destroy() called.", number);
            IOrmObjectMapping map = OrmMain.GetObjectDescription(objectType);

            if (map != null)
            {
                map.ObjectUpdated -= OnRefObjectUpdated;
            }
            if (isOwnerUow)
            {
                UoW.Dispose();
            }
            base.Destroy();
        }
Example #3
0
 public override void Dispose()
 {
     NotifyConfiguration.Instance.UnsubscribeAll(this);
     UoW?.Dispose();
     base.Dispose();
 }
Example #4
0
 public override void Destroy()
 {
     UoW?.Dispose();
     base.Destroy();
 }