public void Dispose() { //_transaction.Dispose(); if (_observer != null) { _observer.Released(this, false); } }
/// <summary> /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// </summary> /// <filterpriority>2</filterpriority> public void Dispose() { if (Session == null) { return; } Session = null; // do nothing. Let the container clean up the session if (!_saved) { _observer.Released(this, false); } }