Exemple #1
0
 /// <summary>
 /// Check if shared object must be released.
 /// </summary>
 protected void CheckRelease()
 {
     if (!this.IsPersistentObject && _listeners.Count == 0)
     {
         log.Debug(__Res.GetString(__Res.SharedObject_Delete, _name));
         if (_storage != null)
         {
             if (!_storage.Remove(this))
             {
                 log.Error(__Res.GetString(__Res.SharedObject_DeleteError));
             }
         }
         Close();
     }
 }