protected virtual void Dispose(bool disposing) { if (disposing) { if (_networkOperations != null) { _networkOperations.Close( ); _networkOperations.Dispose( ); _networkOperations = null; } } }
protected virtual void Dispose(bool disposing) { if (disposing) { #if FULL Disconnect(); #else DisconnectAsync( ).Wait( ); #endif if (_networkOperations != null) { _networkOperations.Close(); _networkOperations.Dispose(); _networkOperations = null; } } }