コード例 #1
0
 public void Dispose()
 {
     //_transaction.Dispose();
     if (_observer != null)
     {
         _observer.Released(this, false);
     }
 }
コード例 #2
0
        /// <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);
            }
        }