Esempio n. 1
0
 /// <summary>
 /// Performs actual Dispose of resources.
 /// </summary>
 /// <param name="disposing">Whether the invocation was from IDisposable.Dipose method.</param>
 protected virtual void Dispose(bool disposing)
 {
     if (_localConnection != null)
     {
         _localConnection.Dispose();
         _localConnection = null;
     }
 }
Esempio n. 2
0
        /// <summary>
        /// Performs actual Dispose of resources.
        /// </summary>
        /// <param name="disposing">Whether the invocation was from IDisposable.Dipose method.</param>
        protected virtual void Dispose(bool disposing)
        {
            if (_localConnectionTarget != null)
            {
                _localConnectionTarget.Dispose();
                _localConnectionTarget = null;
            }

            if (_localConnectionSource != null)
            {
                _localConnectionSource.Dispose();
                _localConnectionSource = null;
            }

            if (_globalConnection != null)
            {
                _globalConnection.Dispose();
                _globalConnection = null;
            }
        }