protected virtual void Dispose(bool disposing) { if (!_disposed) { if (disposing) { #region _globalSignal if (_globalSignal != null) { _globalSignal.Dispose(); _globalSignal = null; } #endregion #region _signal if (_signal != null) { _signal.Dispose(); _signal = null; } #endregion } // Free your own state (unmanaged objects). _disposed = true; } }